/*!
Theme Name: Fajneagd.pl theme
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Motyw portalu FajneAGD.pl — rzetelne poradniki i rankingi AGD.
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: fajneagd-pl-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Fajneagd.pl theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   0. Custom Properties
   ========================================================================== */

:root {
	/* Backgrounds */
	--bg-main:        #F8F8F6;
	--bg-alt:         #EFEFEC;
	--bg-card:        #FFFFFF;

	/* Text */
	--text-primary:   #111827;
	--text-secondary: #56555C;
	--text-meta:      #9B9AA3;

	/* Brand colors */
	--accent:         #E8544A;
	--accent-dark:    #C93D34;
	--accent-light:   #FDF2F1;

	/* Borders */
	--border:         #E2E2DE;
	--border-dark:    #D0CFC9;

	/* Fonts */
	--sans:  'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
	--serif: 'Merriweather', Georgia, 'Times New Roman', serif;

	/* Easing */
	--ease-std: cubic-bezier(0.25, 0.1, 0.25, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	background: var(--bg-main);
	color: var(--text-primary);
	font-family: var(--serif);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

button {
	cursor: pointer;
}

ul,
ol {
	list-style: none;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.3;
}

/* ==========================================================================
   2. Accessibility
   ========================================================================== */

.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;
}

.screen-reader-text:focus {
	background-color: var(--bg-card);
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: var(--accent-dark);
	display: block;
	font-family: var(--sans);
	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;
}

#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* ==========================================================================
   3. Layout
   ========================================================================== */

.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: 62px;
	background: rgba(253, 252, 250, 0.95);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1.5rem;
	height: 62px;
	display: flex;
	align-items: center;
	gap: 2.5rem;
}

/* 4a. Logo / Branding
   ---------------------------------------- */

.site-branding {
	flex-shrink: 0;
	line-height: 1;
}

.site-branding .custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.site-branding .custom-logo {
	height: var(--header-logo-h, 32px);
	width: auto;
}

.site-branding__fallback {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.35rem;
	color: var(--text-primary);
	text-decoration: none;
	display: inline-flex;
	align-items: baseline;
}

.site-branding__accent {
	color: var(--accent);
}

/* 4b. Desktop Navigation
   ---------------------------------------- */

.site-nav {
	display: flex;
	flex: 1;
	gap: 0.15rem;
}

.site-nav ul {
	display: flex;
	gap: 0.15rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav li {
	position: relative;
}

.site-nav > ul > li > a {
	display: inline-flex;
	align-items: center;
	font-family: var(--sans);
	font-weight: 500;
	font-size: 0.855rem;
	color: var(--text-secondary);
	padding: 0.4rem 0.75rem;
	border-radius: 6px;
	text-decoration: none;
	white-space: nowrap;
	position: relative;
	transition: color 240ms var(--ease-std);
}

/* Underline indicator (shared for hover & active) */
.site-nav > ul > li > a::after {
	content: '';
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0;
	height: 2px;
	background: var(--accent);
	border-radius: 1px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 240ms var(--ease-out);
}

.site-nav > ul > li > a:hover,
.site-nav > ul > li > a:focus-visible {
	color: var(--accent-dark);
}

.site-nav > ul > li > a:hover::after,
.site-nav > ul > li > a:focus-visible::after {
	transform: scaleX(1);
}

/* Active menu item */
.site-nav > ul > li.current-menu-item > a,
.site-nav > ul > li.current-menu-ancestor > a,
.site-nav > ul > li.current-menu-parent > a {
	color: var(--accent-dark);
	font-weight: 600;
}

.site-nav > ul > li.current-menu-item > a::after,
.site-nav > ul > li.current-menu-ancestor > a::after,
.site-nav > ul > li.current-menu-parent > a::after {
	transform: scaleX(1);
}

/* 4c. Dropdown (submenu)
   ---------------------------------------- */

.site-nav ul ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 110;
	min-width: 220px;
	padding: 0.45rem 0;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
	flex-direction: column;
	gap: 0;
}

.site-nav ul ul li {
	position: relative;
}

.site-nav ul ul a {
	display: flex;
	align-items: center;
	font-family: var(--sans);
	font-weight: 500;
	font-size: 0.82rem;
	color: var(--text-secondary);
	padding: 0.5rem 1rem;
	border-radius: 0;
	text-decoration: none;
	white-space: nowrap;
	transition: background 200ms var(--ease-std), color 200ms var(--ease-std);
}

.site-nav ul ul a:hover,
.site-nav ul ul a:focus-visible {
	background: var(--bg-alt);
	color: var(--accent-dark);
}

/* Show dropdown on hover & focus */
.site-nav li:hover > ul,
.site-nav li.focus > ul {
	display: flex;
}

/* Sub-submenu (level 3) opens to the right */
.site-nav ul ul ul {
	top: 0;
	left: 100%;
}

/* Dropdown indicator arrow — top-level uses ::before (::after is the underline) */
.site-nav > ul > li.menu-item-has-children > a::before {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 0.3rem;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
	border-top: 3.5px solid currentColor;
	vertical-align: middle;
	opacity: 0.4;
	position: relative;
	order: 1;
}

/* Dropdown indicator arrow — submenu items with children (points right) */
.site-nav ul ul .menu-item-has-children > a::after {
	content: '';
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: auto;
	padding-left: 0.5rem;
	border-top: 3px solid transparent;
	border-bottom: 3px solid transparent;
	border-left: 3.5px solid currentColor;
	vertical-align: middle;
	opacity: 0.4;
}

/* 4d. Header Actions (search + burger)
   ---------------------------------------- */

.header-actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
}

.header-search {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--sans);
	font-weight: 500;
	font-size: 0.855rem;
	color: var(--text-secondary);
	padding: 0.4rem;
	line-height: 0;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	background: transparent;
	white-space: nowrap;
	transition: color 240ms;
}

.header-search:hover {
	color: var(--accent-dark);
}

.header-search svg {
	width: 18px;
	height: 18px;
}

.header-search__label {
	font-family: var(--sans);
	font-weight: 500;
	font-size: 0.855rem;
	line-height: 1;
}

/* 4e. Social media icons
   ---------------------------------------- */

.header-socials {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.header-socials__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--text-secondary);
	transition: color 240ms var(--ease-std);
}

.header-socials__link:hover,
.header-socials__link:focus-visible {
	color: var(--accent);
}

.header-socials__link svg {
	width: 20px;
	height: 20px;
}

/* Mobile: socials inside toggled nav */
.header-socials--mobile {
	display: none;
}

/* 4f. Burger (mobile only)
   ---------------------------------------- */

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
	margin-left: auto;
	padding: 4px;
	background: transparent;
	border: none;
}

.burger span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--text-primary);
	border-radius: 2px;
	transition: transform 240ms var(--ease-out), opacity 240ms var(--ease-out);
	transform-origin: center;
}

/* Burger → X animation */
.burger.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
	opacity: 0;
}

.burger.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* 4f. Search overlay
   ---------------------------------------- */

.header-search-form {
	position: absolute;
	top: 62px;
	left: 0;
	right: 0;
	background: rgba(253, 252, 250, 0.98);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	padding: 1rem 0;
	z-index: 99;
	animation: panelIn 240ms var(--ease-out) forwards;
}

.header-search-form[hidden] {
	display: none;
}

.header-search-form__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

.header-search-form .search-form {
	display: flex;
	gap: 0.5rem;
}

.header-search-form .search-field {
	flex: 1;
	font-family: var(--sans);
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--text-primary);
	background: var(--bg-card);
	border: 1.5px solid var(--border);
	border-radius: 8px;
	padding: 0.65rem 1rem;
	outline: none;
	transition: border-color 240ms;
}

.header-search-form .search-field:focus {
	border-color: var(--accent);
}

.header-search-form .search-field::placeholder {
	color: var(--text-meta);
	font-weight: 400;
}

.header-search-form .search-submit {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.82rem;
	color: #fff;
	background: var(--accent);
	border: none;
	border-radius: 8px;
	padding: 0.65rem 1.25rem;
	cursor: pointer;
	transition: background 240ms;
}

.header-search-form .search-submit:hover {
	background: var(--accent-dark);
}

/* ==========================================================================
   5. Mobile Menu Overlay
   ========================================================================== */

@keyframes panelIn {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ==========================================================================
   6. Shared Components
   ========================================================================== */

/* Scroll Reveal — only activate when JS is available (.js class on <html>) */
.js .reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity 480ms var(--ease-out), transform 480ms var(--ease-out);
}

.js .reveal.visible {
	opacity: 1;
	transform: translateY(0);
}

/* Section Header */
.section-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2rem;
}

.section-label {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-primary);
}

.section-dot {
	width: 8px;
	height: 8px;
	border-radius: 2px;
	flex-shrink: 0;
	position: relative;
	top: -1px;
}

.dot-accent { background: var(--accent); }

/* Section "See all" link */
.section-all {
	font-family: var(--sans);
	font-weight: 500;
	font-size: 0.82rem;
	color: var(--accent);
	display: flex;
	align-items: center;
	gap: 0.3rem;
	transition: color 240ms;
}

.section-all:hover {
	color: var(--accent);
}

.arrow-gap {
	display: flex;
	align-items: center;
	gap: 0.3rem;
	transition: gap 240ms var(--ease-std);
}

.section-all:hover .arrow-gap {
	gap: 0.55rem;
}

/* Category Label */
.cat-label {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.cat-porady,
.cat-rankingi,
.cat-aktualnosci,
.cat-test        { color: var(--accent); }

/* Meta Row */
.meta-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--sans);
	font-weight: 500;
	font-size: 0.75rem;
	color: var(--text-meta);
}

.meta-sep {
	color: var(--border-dark);
}

/* Author Row */
.author-row {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: auto;
}

.author-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1.5px solid var(--border);
	object-fit: cover;
	flex-shrink: 0;
}

.author-name {
	font-family: var(--sans);
	font-weight: 500;
	font-size: 0.78rem;
	color: var(--text-secondary);
}

/* Section Divider */
.section-divider {
	border: none;
	border-top: 1px solid var(--border);
	margin: 0;
}

/* Category link */
a.cat-label {
	text-decoration: none;
	transition: opacity 200ms var(--ease-std);
}

a.cat-label:hover {
	opacity: 0.7;
}

/* Author row as link */
a.author-row {
	text-decoration: none;
}

a.author-row:hover .author-name {
	color: var(--accent-dark);
}

/* Article Card */
.article-card {
	display: flex;
	flex-direction: column;
}

.card-img-wrap {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	margin-bottom: 0.9rem;
}

.card-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--ease-out);
}

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

.card-content {
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.55rem;
}

.card-title {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1.02rem;
	letter-spacing: -0.015em;
	line-height: 1.35;
	color: var(--text-primary);
	transition: color 240ms var(--ease-std);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.card-title a {
	color: inherit;
	text-decoration: none;
}

.card-title a:hover {
	color: var(--accent-dark);
}

.card-excerpt {
	font-family: var(--serif);
	font-weight: 400;
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--text-secondary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Cards Grid */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.8rem;
}

/* ==========================================================================
   7. Section: Najnowsze artykuły
   ========================================================================== */

.section-latest {
	padding: 3rem 0 3.5rem;
}

/* ==========================================================================
   8. Section: Popularne rankingi
   ========================================================================== */

.section-rankings {
	background: var(--bg-card);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 3.5rem 0;
}

/* Rankings Grid */
.rankings-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	align-items: start;
}

/* Ranking Box */
.ranking-box {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 300ms var(--ease-std), border-color 300ms var(--ease-std);
}

.ranking-box:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Card top — square area with image + body */
.ranking-box__top {
	display: flex;
	flex-direction: column;
	aspect-ratio: 1 / 1;
	text-decoration: none;
	color: var(--text-primary);
	overflow: hidden;
}

.ranking-box__img-wrap {
	flex: 1 1 0;
	min-height: 0;
	overflow: hidden;
	background: var(--bg-alt);
}

.ranking-box__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 500ms var(--ease-out);
}

.ranking-box__top:hover .ranking-box__img {
	transform: scale(1.04);
}

.ranking-box__body {
	flex-shrink: 0;
	padding: 14px 18px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.ranking-box__count {
	display: block;
	font-family: var(--sans);
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--accent);
	margin-bottom: 2px;
}

.ranking-box__title {
	display: block;
	font-family: var(--sans);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--text-primary);
	text-align: center;
}

/* Toggle button */
.ranking-box__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.3rem;
	width: 100%;
	padding: 11px 18px;
	border: none;
	border-top: 1px solid #f3f4f6;
	background: var(--bg-card);
	font-family: var(--sans);
	font-size: 11.5px;
	font-weight: 600;
	color: #9ca3af;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	margin-top: auto;
	transition: color 200ms var(--ease-std);
}

.ranking-box__toggle:hover {
	color: var(--accent);
}

.ranking-box__top:focus-visible,
.ranking-box__toggle:focus-visible,
.ranking-box__sub-link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -2px;
}

.ranking-box.open .ranking-box__toggle {
	color: var(--accent);
}

.ranking-box__chevron {
	transition: transform 300ms var(--ease-out);
	flex-shrink: 0;
}

.ranking-box.open .ranking-box__chevron {
	transform: rotate(180deg);
}

/* Related rankings (accordion) */
.ranking-box__related {
	max-height: 0;
	overflow: hidden;
	transition: max-height 350ms ease;
}

.ranking-box__related-inner {
	padding: 4px 18px 12px;
	border-top: 1px solid #f3f4f6;
}

/* Sub-link */
.ranking-box__sub-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 0;
	font-family: var(--sans);
	font-size: 13px;
	font-weight: 500;
	color: #374151;
	text-decoration: none;
	border-bottom: 1px solid #f3f4f6;
	transition: color 200ms var(--ease-std);
}

.ranking-box__sub-link:last-child {
	border-bottom: none;
}

.ranking-box__sub-link:hover {
	color: var(--accent);
}

.ranking-box__arrow {
	flex-shrink: 0;
	color: var(--accent);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 200ms var(--ease-std), transform 200ms var(--ease-std);
}

.ranking-box__sub-link:hover .ranking-box__arrow {
	opacity: 1;
	transform: translateX(0);
}

/* Rankings responsive */
@media (max-width: 900px) {
	.rankings-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}
}

@media (max-width: 520px) {
	.rankings-grid {
		gap: 12px;
	}

	.ranking-box__title {
		font-size: 14px;
	}

	.ranking-box__body {
		padding: 10px 14px 10px;
	}

	.ranking-box__toggle {
		padding: 9px 14px;
	}

	.ranking-box__related-inner {
		padding: 4px 14px 10px;
	}

	.ranking-box__sub-link {
		padding: 8px 0;
		font-size: 12px;
	}
}

/* ==========================================================================
   9. Section: Poradniki
   ========================================================================== */

.section-guides {
	padding: 3.5rem 0 4rem;
}

/* ==========================================================================
   10. Section: Przeglądaj tematy
   ========================================================================== */

.section-topics {
	background: var(--bg-alt);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	padding: 3.5rem 0;
}

/* Tabs */
.topic-tabs {
	display: flex;
	gap: 0.35rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.topic-tab {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.82rem;
	color: var(--text-secondary);
	padding: 0.5rem 1rem;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: var(--bg-card);
	cursor: pointer;
	transition: all 200ms var(--ease-std);
	white-space: nowrap;
}

.topic-tab:hover {
	border-color: var(--accent);
	color: var(--accent-dark);
}

.topic-tab.active {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

/* Panels */
.topics-panel {
	display: none;
}

.topics-panel.active {
	display: block;
	animation: panelIn 350ms var(--ease-out) forwards;
}

/* Subcategory chips */
.subcategory-chips {
	display: flex;
	gap: 0.5rem;
	margin-top: 1.8rem;
	padding-bottom: 0.5rem;
	overflow-x: auto;
	scrollbar-width: thin;
	scrollbar-color: var(--border-dark) transparent;
	-webkit-overflow-scrolling: touch;
}

.subcategory-chips::-webkit-scrollbar {
	height: 3px;
}

.subcategory-chips::-webkit-scrollbar-thumb {
	background: var(--border-dark);
	border-radius: 3px;
}

.subcategory-chip {
	display: inline-flex;
	align-items: center;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.72rem;
	letter-spacing: 0.02em;
	color: var(--text-secondary);
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 6px;
	padding: 0.35rem 0.7rem;
	white-space: nowrap;
	text-decoration: none;
	transition: border-color 200ms var(--ease-std), color 200ms var(--ease-std), background 200ms var(--ease-std);
	flex-shrink: 0;
}

.subcategory-chip:hover {
	border-color: var(--accent);
	color: var(--accent-dark);
	background: var(--accent-light);
}

/* Footer link under cards */
.topics-panel-footer {
	margin-top: 1.2rem;
	text-align: right;
}

/* Empty state */
.topics-empty {
	font-family: var(--sans);
	font-size: 0.88rem;
	color: var(--text-meta);
	padding: 2rem 0;
}

/* ==========================================================================
   11. Section: Aktualności
   ========================================================================== */

.section-news {
	padding: 3.5rem 0 4rem;
}

.news-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.4rem;
}

.news-card {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
}

.news-img-wrap {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 16 / 9;
}

.news-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--ease-out);
}

.news-img-wrap:hover img {
	transform: scale(1.03);
}

.news-title {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.88rem;
	letter-spacing: -0.01em;
	line-height: 1.35;
	color: var(--text-primary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.news-title a {
	color: inherit;
	text-decoration: none;
	transition: color 240ms var(--ease-std);
}

.news-title a:hover {
	color: var(--accent-dark);
}

/* ==========================================================================
   12. Section: Newsletter
   ========================================================================== */

.section-newsletter {
	padding: 4rem 0;
}

.newsletter-box {
	background: var(--text-primary);
	border-radius: 16px;
	padding: 3rem 3.5rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

/* Left column — copy */
.newsletter-eyebrow {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--accent);
	margin-bottom: 0.7rem;
}

.newsletter-title {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.55rem;
	letter-spacing: -0.025em;
	line-height: 1.25;
	color: #fff;
	margin-bottom: 0.75rem;
}

.newsletter-desc {
	font-family: var(--serif);
	font-size: 0.88rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.55);
}

/* Right column — form */
.newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.newsletter-input {
	width: 100%;
	font-family: var(--sans);
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--text-primary);
	background: #fff;
	border: 1.5px solid transparent;
	border-radius: 8px;
	padding: 0.8rem 1rem;
	outline: none;
	transition: border-color 240ms;
}

.newsletter-input::placeholder {
	color: var(--text-meta);
	font-weight: 400;
}

.newsletter-input:focus {
	border-color: var(--accent);
}

/* RODO consent */
.newsletter-consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-family: var(--sans);
	font-size: 0.7rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: color 200ms;
}

.newsletter-consent input[type="checkbox"] {
	margin-top: 0.15rem;
	flex-shrink: 0;
	accent-color: var(--accent);
}

.newsletter-btn {
	width: 100%;
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.88rem;
	letter-spacing: 0.02em;
	color: #fff;
	background: var(--accent);
	border: none;
	border-radius: 8px;
	padding: 0.85rem 1rem;
	cursor: pointer;
	transition: background 240ms;
	margin-top: 0.2rem;
}

.newsletter-btn:hover {
	background: var(--accent-dark);
}

.newsletter-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Error message */
.newsletter-error {
	font-family: var(--sans);
	font-size: 0.78rem;
	color: #e05a50;
	margin-top: 0.25rem;
}

/* Disclaimer */
.newsletter-disclaimer {
	font-family: var(--sans);
	font-size: 0.7rem;
	color: rgba(255, 255, 255, 0.3);
	line-height: 1.5;
	margin-top: 0.25rem;
}

/* Success state */
.newsletter-success {
	text-align: center;
	padding: 1rem 0;
}

.newsletter-success-icon {
	font-size: 2rem;
	display: block;
	margin-bottom: 0.5rem;
	color: var(--accent);
}

.newsletter-success-title {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1rem;
	color: #fff;
	margin-bottom: 0.3rem;
}

.newsletter-success-desc {
	font-family: var(--serif);
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.5);
}

/* Featured Card */
.featured-card {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 2.4rem;
	align-items: center;
	margin-bottom: 2.2rem;
}

.featured-img-wrap {
	position: relative;
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	display: block;
}

.featured-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--ease-out);
}

.featured-img-wrap:hover img {
	transform: scale(1.03);
}

.featured-content {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.featured-title {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.65rem;
	letter-spacing: -0.025em;
	line-height: 1.22;
	color: var(--text-primary);
	transition: color 240ms var(--ease-std);
}

.featured-title a {
	color: inherit;
	text-decoration: none;
}

.featured-title a:hover {
	color: var(--accent-dark);
}

.featured-excerpt {
	font-family: var(--serif);
	font-weight: 400;
	font-size: 0.92rem;
	line-height: 1.6;
	color: var(--text-secondary);
	display: -webkit-box;
	-webkit-line-clamp: 6;
	-webkit-box-orient: vertical;
	overflow: hidden;
}


/* ==========================================================================
   13. Section: O nas
   ========================================================================== */

.section-about {
	background: #1A1917;
	padding: 4rem 0;
}

/* Label */
.about-label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--sans);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--accent);
	margin-bottom: 2.5rem;
}

.about-label a {
	color: inherit;
	text-decoration: none;
	transition: opacity 200ms;
}

.about-label a:hover {
	opacity: 0.7;
}

/* Headline */
.about-headline {
	font-family: var(--sans);
	font-size: 2.2rem;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	color: #fff;
	margin-bottom: 1.5rem;
	max-width: 560px;
}

.about-headline em {
	font-style: normal;
	color: var(--accent);
}

/* Lead */
.about-lead {
	font-family: var(--serif);
	font-size: 0.95rem;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.5);
	max-width: 580px;
	margin-bottom: 3.5rem;
}

/* Authors — flex with separators */
.about-authors {
	display: flex;
	gap: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	flex-wrap: wrap;
}

.about-author-sep {
	width: 1px;
	background: rgba(255, 255, 255, 0.08);
	align-self: stretch;
}

.about-author {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	flex: 1;
	min-width: 0;
}

.about-author a {
	text-decoration: none;
	flex-shrink: 0;
}

.about-photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, 0.1);
	transition: border-color 200ms;
}

.about-author a:hover .about-photo {
	border-color: var(--accent);
}

.about-author-info {
	min-width: 0;
}

.about-author-name {
	display: block;
	font-family: var(--sans);
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
	margin-bottom: 0.4rem;
	text-decoration: none;
	transition: color 200ms;
}

.about-author-name:hover {
	color: var(--accent);
}

.about-author-note {
	font-family: var(--serif);
	font-size: 0.78rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.38);
}

/* ==========================================================================
   14. Section: Najnowsze rankingi
   ========================================================================== */

.section-latest-rankings {
	padding: 4rem 0;
}

/* ==========================================================================
   15. Footer
   ========================================================================== */

.site-footer {
	background: #1A1917;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	padding: 3.5rem 0 2rem;
}

/* Footer Latest Posts */
.footer-latest {
	padding-bottom: 1.5rem;
	margin-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-latest-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
}

.footer-latest-list li a {
	font-family: var(--sans);
	font-size: 0.82rem;
	color: rgba(255, 255, 255, 0.55);
	text-decoration: none;
	transition: color 0.15s ease;
}

.footer-latest-list li a:hover {
	color: var(--accent);
}

/* Footer Grid */
.footer-grid {
	display: grid;
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
	gap: 3rem;
	padding-bottom: 2.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Brand column */
.footer-brand-logo {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.25rem;
	color: #fff;
	margin-bottom: 0.85rem;
}

.footer-brand-logo span {
	color: var(--accent);
}

a.footer-brand-logo {
	display: block;
	text-decoration: none;
}

a.footer-brand-logo img {
	width: auto;
}

.footer-brand-desc {
	font-family: var(--serif);
	font-size: 0.82rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.4);
	max-width: 280px;
}

/* Column titles */
.footer-col-title {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.45);
	margin-bottom: 1.1rem;
}

/* Column links (wp_nav_menu outputs <ul>) */
.footer-col-links {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-col-links a {
	font-family: var(--sans);
	font-size: 0.84rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.5);
	text-decoration: none;
	transition: color 200ms;
}

.footer-col-links a:hover {
	color: #fff;
}

/* Footer Bottom */
.footer-bottom {
	display: flex;
	align-items: start;
	justify-content: space-between;
	padding-top: 1.75rem;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.footer-copy {
	font-family: var(--sans);
	font-size: 0.74rem;
	color: rgba(255, 255, 255, 0.3);
}

.footer-legal {
	display: flex;
	gap: 1.25rem;
	flex-wrap: wrap;
}

.footer-legal a {
	font-family: var(--sans);
	font-size: 0.74rem;
	color: rgba(255, 255, 255, 0.3);
	text-decoration: none;
	transition: color 200ms;
}

.footer-legal a:hover {
	color: rgba(255, 255, 255, 0.7);
}

.footer-affiliate {
	width: 100%;
	margin-top: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	font-family: var(--sans);
	font-size: 0.7rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.2);
	max-width: 680px;
}

/* ==========================================================================
   WordPress Core Styles
   ========================================================================== */

/* Posts & Pages */
.sticky {
	display: block;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

.custom-logo-link {
	display: inline-block;
}

/* Captions */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-columns-7 { grid-template-columns: repeat(7, 1fr); }
.gallery-columns-8 { grid-template-columns: repeat(8, 1fr); }
.gallery-columns-9 { grid-template-columns: repeat(9, 1fr); }

.gallery-caption {
	display: block;
}

/* Alignments */
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Jetpack infinite scroll */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

.infinity-end.neverending .site-footer {
	display: block;
}

/* Post navigation */
.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* ==========================================================================
   Contact Form (shortcode)
   ========================================================================== */

/* Contact form — shared base styles */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.contact-form__hp {
	position: absolute;
	left: -9999px;
	opacity: 0;
	height: 0;
	width: 0;
	overflow: hidden;
}

.contact-form__input {
	width: 100%;
	font-family: var(--sans);
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--text-primary);
	background: #fff;
	border: 1.5px solid transparent;
	border-radius: 8px;
	padding: 0.8rem 1rem;
	outline: none;
	transition: border-color 240ms;
}

.contact-form__input::placeholder {
	color: var(--text-meta);
	font-weight: 400;
}

.contact-form__input:focus {
	border-color: var(--accent);
}

.contact-form__input.is-error {
	border-color: #e05a50;
}

.contact-form__textarea {
	resize: vertical;
	min-height: 120px;
}

.contact-form__error {
	font-family: var(--sans);
	font-size: 0.82rem;
	color: #e05a50;
}

.contact-form__btn {
	width: 100%;
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.88rem;
	letter-spacing: 0.02em;
	color: #fff;
	background: var(--accent);
	border: none;
	border-radius: 8px;
	padding: 0.85rem 1rem;
	cursor: pointer;
	transition: background 240ms;
}

.contact-form__btn:hover {
	background: var(--accent-dark);
}

.contact-form__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.contact-form__success {
	text-align: center;
	padding: 1.5rem 0;
}

.contact-form__success-icon {
	color: var(--accent);
	margin: 0 auto 1rem;
	display: block;
}

.contact-form__success-title {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1.15rem;
	color: #fff;
	margin-bottom: 0.4rem;
}

.contact-form__success-desc {
	font-family: var(--serif);
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.6;
}

/* Shortcode box — dark style like newsletter */
.contact-form-box {
	background: var(--text-primary);
	border-radius: 16px;
	padding: 3rem 3.5rem;
	max-width: 640px;
}

.contact-form-box__eyebrow {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--accent);
	margin-bottom: 0.7rem;
	display: block;
}

.contact-form-box .contact-form-box__title {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.55rem;
	letter-spacing: -0.025em;
	line-height: 1.25;
	color: #fff;
	margin: 0 0 0.75rem;
}

.contact-form-box .contact-form {
	margin-top: 1.5rem;
}

.contact-form-box__desc {
	font-family: var(--serif);
	font-size: 0.88rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.55);
}

/* Compact variant — ranking posts (dark box, newsletter-like) */
.ranking-contact {
	margin-top: 3rem;
	background: var(--text-primary);
	border-radius: 16px;
	padding: 2.5rem 3rem;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2.5rem;
	align-items: center;
}

.ranking-contact__eyebrow {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--accent);
	margin-bottom: 0.7rem;
	display: block;
}

.ranking-contact__title {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.55rem;
	letter-spacing: -0.025em;
	line-height: 1.25;
	color: #fff;
	margin-bottom: 0.5rem;
}

.ranking-contact__desc {
	font-family: var(--serif);
	font-size: 0.88rem;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.55);
}

.contact-form--compact__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.75rem;
}

/* Dark form shared overrides */
.contact-form--compact .contact-form__consent {
	color: rgba(255, 255, 255, 0.4);
}

.contact-form--compact .contact-form__consent input[type="checkbox"] {
	accent-color: var(--accent);
}

.contact-form--compact .contact-form__textarea {
	min-height: 90px;
}

@media (max-width: 768px) {
	.contact-form-box,
	.ranking-contact {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		padding: 2rem 1.5rem;
	}

	.contact-form--compact__row {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   7. Responsive — Tablet (≤1024px)
   ========================================================================== */

@media (max-width: 1024px) {
	.header-inner {
		gap: 1.5rem;
	}

	/* Featured card stacks vertically */
	.featured-card {
		grid-template-columns: 1fr;
	}

	.featured-img-wrap {
		order: -1;
	}

	/* 2-column grid */
	.cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}

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

	.footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 2rem;
	}
}

/* ==========================================================================
   8. Responsive — Mobile (≤768px)
   ========================================================================== */

@media (max-width: 768px) {

	/* Show burger, hide desktop nav & search label */
	.burger {
		display: flex;
	}

	.header-search__label {
		display: none;
	}

	/* Hide desktop socials, show mobile version inside nav */
	.header-socials:not(.header-socials--mobile) {
		display: none;
	}

	.header-socials--mobile {
		display: flex;
		justify-content: center;
		gap: 0.75rem;
		padding: 0.75rem 0;
		margin-top: 0.5rem;
		border-top: 1px solid var(--border);
	}

	.header-socials--mobile .header-socials__link svg {
		width: 22px;
		height: 22px;
	}

	/* Mobile nav: full-width dropdown below header */
	.site-nav {
		display: none;
		position: absolute;
		top: 62px;
		left: 0;
		right: 0;
		background: rgba(253, 252, 250, 0.98);
		backdrop-filter: blur(12px);
		-webkit-backdrop-filter: blur(12px);
		border-bottom: 1px solid var(--border);
		padding: 0.75rem 1.1rem;
		flex-direction: column;
		gap: 0.1rem;
		z-index: 99;
		animation: panelIn 240ms var(--ease-out) forwards;
	}

	.site-nav.toggled {
		display: flex;
	}

	.site-nav ul {
		flex-direction: column;
		gap: 0;
	}

	.site-nav > ul > li > a,
	.site-nav ul ul a {
		display: block;
		padding: 0.65rem 0.75rem;
		font-size: 0.9rem;
		font-family: var(--sans);
		font-weight: 500;
		color: var(--text-secondary);
	}

	/* Hide underline on mobile */
	.site-nav > ul > li > a::after {
		display: none;
	}

	/* Mobile active state — just color */
	.site-nav > ul > li.current-menu-item > a,
	.site-nav > ul > li.current-menu-ancestor > a {
		color: var(--accent-dark);
		background: var(--accent-light);
		border-radius: 6px;
	}

	/* Mobile dropdowns: nested, no absolute positioning */
	.site-nav ul ul {
		position: static;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0;
		padding-left: 1rem;
		min-width: auto;
		display: none;
	}

	/* Level 3 indent */
	.site-nav ul ul ul {
		padding-left: 1rem;
	}

	.site-nav li:hover > ul,
	.site-nav li.focus > ul {
		display: flex;
	}

	.site-nav ul ul a {
		font-size: 0.85rem;
		color: var(--text-meta);
	}

	/* Hide dropdown arrows on mobile */
	.site-nav > ul > li.menu-item-has-children > a::before,
	.site-nav ul ul .menu-item-has-children > a::after {
		display: none;
	}

	/* Single column cards */
	.cards-grid {
		grid-template-columns: 1fr;
	}

	/* Newsletter stacks vertically */
	.newsletter-box {
		grid-template-columns: 1fr;
		padding: 2rem 1.5rem;
		gap: 1.75rem;
	}

	/* About section */
	.about-headline {
		font-size: 1.6rem;
	}

	.about-authors {
		flex-direction: column;
		gap: 1.5rem;
	}

	.about-author-sep {
		display: none;
	}

	/* Footer */
	.footer-grid {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	/* Archive header */
	.archive-title {
		font-size: 1.5rem;
	}

	.archive-content {
		padding: 1.5rem 0 3rem;
	}

	/* About page */
	.about-hero__title {
		font-size: 1.75rem;
	}

	.about-team__grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}

	.about-section {
		padding: 2rem 0;
	}

	/* Static pages */
	.static-page__title {
		font-size: 1.5rem;
	}

	/* 404 page */
	.error-404 {
		padding: 2.5rem 0 3rem;
	}

	.error-404__code {
		font-size: 3.5rem;
	}

	.error-404__title {
		font-size: 1.3rem;
	}

	/* Author hero — stack on mobile */
	.author-hero__inner {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}

	.author-hero__avatar {
		width: 72px;
		height: 72px;
	}

	.author-hero__name {
		font-size: 1.3rem;
	}

	.author-hero__bio {
		max-width: none;
	}

	/* Ranking filters — stack groups vertically on mobile */
	.ranking-filter-group {
		flex-direction: column;
		gap: 0.4rem;
	}

	.ranking-filter-group__label {
		min-width: auto;
	}

	.ranking-filter-group__chips {
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 0.3rem;
		scrollbar-width: thin;
		scrollbar-color: var(--border-dark) transparent;
		-webkit-overflow-scrolling: touch;
	}

	.ranking-filter-group__chips::-webkit-scrollbar {
		height: 3px;
	}

	.ranking-filter-group__chips::-webkit-scrollbar-thumb {
		background: var(--border-dark);
		border-radius: 3px;
	}

	/* Featured card looks like regular card on mobile */
	.featured-title {
		font-size: 1.02rem;
		font-weight: 700;
		letter-spacing: -0.015em;
		line-height: 1.35;
	}

	.featured-excerpt {
		font-size: 0.88rem;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

/* ==========================================================================
   9. Responsive — Small (≤480px)
   ========================================================================== */

@media (max-width: 480px) {
	.container {
		padding: 0 1.1rem;
	}

	.header-inner {
		padding: 0 1.1rem;
	}

	.section-latest {
		padding: 2.5rem 0 3rem;
	}

	.section-rankings,
	.section-topics {
		padding: 2.5rem 0;
	}

	.topic-tabs {
		gap: 0.25rem;
	}

	.topic-tab {
		font-size: 0.75rem;
		padding: 0.4rem 0.75rem;
	}

	.section-news {
		padding: 2.5rem 0 3rem;
	}

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

/* ==========================================================================
   15. Single Post: Poradnik (Guide)
   ========================================================================== */

/* Breadcrumbs */
.breadcrumbs {
	padding-top: 1.25rem;
}

.breadcrumbs__list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.3rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-family: var(--sans);
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--text-meta);
}

.breadcrumbs__item {
	display: flex;
	align-items: center;
	gap: 0.3rem;
}

.breadcrumbs__item:not(:last-child)::after {
	content: '›';
	color: var(--border-dark);
	font-size: 0.85rem;
}

.breadcrumbs__item a {
	color: var(--text-meta);
	text-decoration: none;
	transition: color 200ms;
}

.breadcrumbs__item a:hover {
	color: var(--accent-dark);
}

.breadcrumbs__item:last-child {
	color: var(--text-secondary);
}

/* Two-column layout */
.single-layout {
	display: grid;
	grid-template-columns: 1fr 320px;
	gap: 3.5rem;
	padding-top: 2rem;
	padding-bottom: 4rem;
	align-items: start;
}

/* --- Main content column --- */
.single-content {
	min-width: 0;
}

/* Header meta */
.single-meta-top {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--sans);
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--text-meta);
	margin-bottom: 0.85rem;
}

.single-reading-time {
	color: var(--text-meta);
}

/* Title */
.single-title {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 2.1rem;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: var(--text-primary);
	margin-bottom: 1.25rem;
}

/* Author row */
.single-meta-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 2rem;
}

.single-meta-bottom .reactions-bar {
	margin-top: 0;
}

.single-author {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.single-author__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 1.5px solid var(--border);
}

.single-author__info {
	display: flex;
	flex-direction: column;
	gap: 0.1rem;
}

.single-author__name {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--text-primary);
}

.single-author__date {
	font-family: var(--sans);
	font-weight: 400;
	font-size: 0.78rem;
	color: var(--text-meta);
}

.single-updated {
	color: var(--text-meta);
	font-style: italic;
}

/* Featured image */
.single-thumbnail {
	margin-bottom: 2.5rem;
	border-radius: 12px;
	overflow: hidden;
}

.single-thumbnail img {
	width: 100%;
	height: auto;
	display: block;
}

/* Entry content — typography */
.single-entry-content {
	font-family: var(--serif);
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--text-primary);
}

.single-entry-content h2 {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1.45rem;
	letter-spacing: -0.02em;
	line-height: 1.3;
	margin: 2.5rem 0 1rem;
	color: var(--text-primary);
	scroll-margin-top: 80px;
}

.single-entry-content h3 {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	line-height: 1.35;
	margin: 2rem 0 0.75rem;
	color: var(--text-primary);
}

.single-entry-content p {
	margin: 0 0 1.4rem;
}

.single-entry-content a {
	color: var(--accent-dark);
	text-decoration: underline;
	text-decoration-color: var(--accent-light);
	text-underline-offset: 2px;
	transition: text-decoration-color 200ms;
}

.single-entry-content a:hover {
	text-decoration-color: var(--accent-dark);
}

.single-entry-content ul,
.single-entry-content ol {
	margin: 0 0 1.4rem 1.5rem;
	list-style: revert;
}

.single-entry-content li {
	margin-bottom: 0.4rem;
}

.single-entry-content h4 {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.35;
	margin: 1.5rem 0 0.5rem;
}

.single-entry-content li::marker {
	color: var(--accent);
}

.single-entry-content blockquote {
	border-left: 3px solid var(--accent);
	padding: 0.75rem 1.25rem;
	margin: 1.5rem 0;
	background: var(--bg-alt);
	border-radius: 0 8px 8px 0;
	font-style: italic;
	color: var(--text-secondary);
}

.single-entry-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 1.5rem 0;
}

.single-entry-content hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 2rem 0;
}

.single-entry-content figure {
	margin: 1.5rem 0;
}

.single-entry-content figcaption {
	font-family: var(--sans);
	font-size: 0.78rem;
	color: var(--text-meta);
	text-align: center;
	margin-top: 0.5rem;
}

/* Override WP Gutenberg block-library table styles */
.single-entry-content .wp-block-table {
	overflow-x: visible;
}

.single-entry-content .wp-block-table thead {
	border-bottom: none;
}

.single-entry-content .wp-block-table tfoot {
	border-top: none;
}

.single-entry-content .wp-block-table td,
.single-entry-content .wp-block-table th {
	border: none;
}

/* Table base styles */
.single-entry-content table {
	width: 100%;
	min-width: 600px;
	border-collapse: separate;
	border-spacing: 0;
	font-family: var(--sans);
	font-size: 0.85rem;
	line-height: 1.5;
}

/* When not wrapped (JS disabled) */
.single-entry-content > table {
	margin: 1.5rem 0;
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
}

.single-entry-content th,
.single-entry-content td,
.single-entry-content .wp-block-table th,
.single-entry-content .wp-block-table td {
	text-align: left;
	padding: 0.7rem 1rem;
	border: none;
	border-bottom: 1px solid var(--border);
}

.single-entry-content th + th,
.single-entry-content td + td {
	border-left: 1px solid var(--border);
}

.single-entry-content th {
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-meta);
}

.single-entry-content tbody tr:nth-child(even) {
	background: var(--bg-alt);
}

.single-entry-content tbody tr:nth-child(odd) {
	background: var(--bg-card);
}

.single-entry-content tbody tr:last-child td {
	border-bottom: none;
}

.single-entry-content td {
	color: var(--text-primary);
}

/* Block Style: Highlights (core/list) + legacy .info-list */
.single-entry-content .is-style-highlights,
.single-entry-content .info-list {
	margin: 2rem 0;
	list-style: none;
	padding-left: 0;
}

.single-entry-content .is-style-highlights::before,
.single-entry-content .info-list::before {
	content: 'Najważniejsze informacje';
	display: block;
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--text-primary);
	margin-bottom: 0.75rem;
}

.single-entry-content .is-style-highlights li,
.single-entry-content .info-list li {
	position: relative;
	padding-left: 1.25rem;
	margin-bottom: 0.6rem;
	font-family: var(--sans);
	font-size: 0.88rem;
	line-height: 1.5;
	color: var(--text-primary);
}

.single-entry-content .is-style-highlights li:last-child,
.single-entry-content .info-list li:last-child {
	margin-bottom: 0;
}

.single-entry-content .is-style-highlights li::before,
.single-entry-content .info-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 6px;
	height: 6px;
	background: var(--accent);
	border-radius: 50%;
}

.single-entry-content .is-style-highlights li::marker,
.single-entry-content .info-list li::marker {
	content: none;
}

/* Inline banner */
.inline-banner {
	margin: 2.5rem auto;
	border-radius: 12px;
	overflow: hidden;
	text-align: center;
	max-width: var(--inline-banner-mw, 100%);
}

.inline-banner img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 200ms;
}

.inline-banner a:hover img {
	opacity: 0.9;
}

@media (max-width: 768px) {
	.inline-banner {
		max-width: var(--inline-banner-mw-mob, var(--inline-banner-mw, 100%));
	}
}

/* Rank Math FAQ — accordion */
.rank-math-faq-heading {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1.45rem;
	letter-spacing: -0.02em;
	line-height: 1.3;
	margin: 2.5rem 0 1rem;
	color: var(--text-primary);
	scroll-margin-top: 80px;
}

.rank-math-block {
	margin: 0 0 2rem;
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
}

.rank-math-list-item {
	border-bottom: 1px solid var(--border);
}

.rank-math-list-item:last-child {
	border-bottom: none;
}

.rank-math-question {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.95rem!important;
	line-height: 1.4;
	color: var(--text-primary);
	margin: 0!important;
	padding: 1.1rem 3rem 1.1rem 1.25rem!important;
	cursor: pointer;
	position: relative;
	transition: background 200ms, color 200ms;
	user-select: none;
}

.rank-math-question:hover {
	background: var(--bg-alt);
	color: var(--accent-dark);
}

.rank-math-question::after {
	content: '';
	position: absolute;
	right: 1.25rem;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid var(--text-meta);
	border-bottom: 2px solid var(--text-meta);
	transform: translateY(-65%) rotate(45deg);
	transition: transform 250ms var(--ease-out);
}

.rank-math-list-item.faq-open .rank-math-question::after {
	transform: translateY(-35%) rotate(-135deg);
}

.rank-math-list-item.faq-open .rank-math-question {
	color: var(--accent-dark);
}

.rank-math-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 300ms var(--ease-out);
}

.rank-math-answer > * {
	padding: 0 1.25rem;
}

.rank-math-answer > *:last-child {
	padding-top: 1.25rem;
}

.rank-math-answer p {
	font-family: var(--serif);
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--text-secondary);
}

/* Post navigation */
.single-post-nav {
	margin: 3rem 0;
	padding: 2rem 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.single-post-nav .post-navigation {
	margin: 0;
}

.single-post-nav .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2rem;
}

.single-post-nav .nav-previous,
.single-post-nav .nav-next {
	flex: none;
}

.single-post-nav .nav-next {
	text-align: right;
}

.post-nav__label {
	display: block;
	font-family: var(--sans);
	font-weight: 500;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-meta);
	margin-bottom: 0.35rem;
}

.post-nav__title {
	display: block;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--text-primary);
	line-height: 1.35;
	transition: color 200ms;
}

.single-post-nav a:hover .post-nav__title {
	color: var(--accent-dark);
}

/* Comments */
.single-comments {
	margin-top: 2.5rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--border);
}

/* Comments area */
.comments-area {
	font-family: var(--sans);
}

.comments-title {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: -0.01em;
	color: var(--text-primary);
	margin-bottom: 1.75rem;
}

/* Comment list */
.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .comment {
	padding: 1.25rem 0;
	border-bottom: 1px solid var(--border);
}

.comment-list .comment:first-child {
	padding-top: 0;
}

.comment-list .children {
	list-style: none;
	margin: 0;
	padding: 0 0 0 2rem;
}

/* Comment body */
.comment-body {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.comment-meta .avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid var(--border);
	object-fit: cover;
	flex-shrink: 0;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.comment-author .fn {
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--text-primary);
}

.comment-author .says {
	display: none;
}

.comment-metadata {
	margin-left: auto;
}

.comment-metadata a {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--text-meta);
	text-decoration: none;
	transition: color 200ms;
}

.comment-metadata a:hover {
	color: var(--accent-dark);
}

.comment-content {
	font-family: var(--serif);
	font-size: 0.9rem;
	line-height: 1.7;
	color: var(--text-secondary);
}

.comment-content p {
	margin: 0 0 0.75rem;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply a {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.75rem;
	color: var(--accent);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	transition: color 200ms;
}

.reply a:hover {
	color: var(--accent-dark);
}

/* Comment form */
.comment-respond {
	margin-top: 2rem;
}

.comment-reply-title {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--text-primary);
	margin-bottom: 1.25rem;
}

.comment-reply-title small {
	font-size: 0.78rem;
	font-weight: 500;
	margin-left: 0.5rem;
}

.comment-reply-title small a {
	color: var(--accent);
	text-decoration: none;
}

.comment-form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.comment-form label {
	display: block;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.8rem;
	color: var(--text-secondary);
	margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	font-family: var(--sans);
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--text-primary);
	background: var(--bg-card);
	border: 1.5px solid var(--border);
	border-radius: 8px;
	padding: 0.7rem 1rem;
	outline: none;
	transition: border-color 240ms;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--accent);
}

.comment-form textarea {
	min-height: 140px;
	resize: vertical;
	line-height: 1.6;
}

.comment-form .form-submit {
	margin-top: 0.25rem;
}

.comment-form .submit {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.88rem;
	color: #fff;
	background: var(--accent);
	border: none;
	border-radius: 8px;
	padding: 0.8rem 2rem;
	cursor: pointer;
	transition: background 240ms;
}

.comment-form .submit:hover {
	background: var(--accent-dark);
}

/* Comment navigation */
.comment-navigation {
	display: flex;
	justify-content: space-between;
	margin: 1.25rem 0;
	font-family: var(--sans);
	font-size: 0.82rem;
	font-weight: 500;
}

.comment-navigation a {
	color: var(--accent);
	text-decoration: none;
	transition: color 200ms;
}

.comment-navigation a:hover {
	color: var(--accent-dark);
}

.no-comments {
	font-family: var(--sans);
	font-size: 0.88rem;
	color: var(--text-meta);
	font-style: italic;
}

/* --- Sidebar --- */
.single-sidebar {
	align-self: start;
	position: sticky;
	top: 80px;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

/* Sidebar widgets */
.sidebar-widget {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1.5rem;
}

.sidebar-widget__title {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-primary);
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
}

/* TOC */
.sidebar-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: toc;
}

.sidebar-toc__item {
	counter-increment: toc;
}

.sidebar-toc__link {
	display: flex;
	gap: 0.6rem;
	font-family: var(--sans);
	font-weight: 500;
	font-size: 0.82rem;
	line-height: 1.4;
	color: var(--text-secondary);
	padding: 0.45rem 0;
	border-left: 2px solid transparent;
	padding-left: 0.75rem;
	margin-left: -0.75rem;
	transition: color 200ms, border-color 200ms;
	text-decoration: none;
}

.sidebar-toc__link::before {
	content: counter(toc, decimal-leading-zero);
	font-weight: 600;
	font-size: 0.72rem;
	color: var(--text-meta);
	min-width: 1.4em;
	flex-shrink: 0;
}

.sidebar-toc__link:hover {
	color: var(--accent-dark);
	border-left-color: var(--accent);
}

.sidebar-toc__link.active {
	color: var(--accent-dark);
	border-left-color: var(--accent);
	font-weight: 600;
}

/* Newsletter compact */
.sidebar-newsletter__desc {
	font-family: var(--serif);
	font-size: 0.82rem;
	color: var(--text-secondary);
	line-height: 1.55;
	margin-bottom: 1rem;
}

.sidebar-newsletter__form {
	display: flex;
	flex-direction: column;
	gap: 0.6rem;
}

.sidebar-newsletter__input {
	font-size: 0.82rem;
	padding: 0.65rem 0.85rem;
	border-radius: 8px;
}

.sidebar-newsletter__btn {
	font-size: 0.82rem;
	padding: 0.7rem;
}

/* Related rankings */
.sidebar-rankings__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.sidebar-rankings__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	text-decoration: none;
	transition: opacity 200ms;
}

.sidebar-rankings__link:hover {
	opacity: 0.8;
}

.sidebar-rankings__thumb {
	width: 52px;
	height: 52px;
	border-radius: 8px;
	overflow: hidden;
	flex-shrink: 0;
}

.sidebar-rankings__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sidebar-rankings__title {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.82rem;
	line-height: 1.35;
	color: var(--text-primary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Sidebar banner */
.sidebar-banner {
	border-radius: 12px;
	overflow: hidden;
}

.sidebar-banner img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 200ms;
}

.sidebar-banner a:hover img {
	opacity: 0.9;
}

/* --- Related guides section --- */
.related-guides {
	margin-top: 3rem;
	padding-top: 2.5rem;
	border-top: 1px solid var(--border);
}

.related-guides__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

.related-card {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
	overflow: hidden;
	transition: border-color 240ms;
}

.related-card:hover {
	border-color: var(--border-dark);
}

.related-card__img-wrap {
	width: 140px;
	flex-shrink: 0;
	display: block;
}

.related-card__img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.related-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	padding: 1rem 1rem 1rem 0;
	justify-content: center;
}

.related-card__title {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.88rem;
	line-height: 1.35;
	color: var(--text-primary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.related-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 200ms;
}

.related-card__title a:hover {
	color: var(--accent-dark);
}

.related-card__excerpt {
	font-family: var(--serif);
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--text-meta);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ==========================================================================
   16. Single Post: Ranking
   ========================================================================== */

/* Full-width single column */
.ranking-layout {
	padding-top: 2rem;
	padding-bottom: 4rem;
}

/* Inline TOC */
.ranking-toc {
	background: var(--bg-alt);
	border: 1px solid var(--border);
	border-radius: 12px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 2.5rem;
}

.ranking-toc__title {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-primary);
	margin-bottom: 0.85rem;
	padding-bottom: 0.65rem;
	border-bottom: 1px solid var(--border);
}

.ranking-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: ranking-toc;
	columns: 2;
	column-gap: 2rem;
}

.ranking-toc__item {
	counter-increment: ranking-toc;
	break-inside: avoid;
}

.ranking-toc__link {
	display: flex;
	gap: 0.5rem;
	font-family: var(--sans);
	font-weight: 500;
	font-size: 0.85rem;
	line-height: 1.4;
	color: var(--text-secondary);
	padding: 0.4rem 0;
	text-decoration: none;
	transition: color 200ms;
}

.ranking-toc__link::before {
	content: counter(ranking-toc, decimal-leading-zero);
	font-weight: 600;
	font-size: 0.72rem;
	color: var(--text-meta);
	min-width: 1.4em;
	flex-shrink: 0;
}

.ranking-toc__link:hover {
	color: var(--accent-dark);
}

/* Related guides grid — wide variant (4 columns for full-width layout) */
.related-guides__grid--wide {
	grid-template-columns: repeat(4, 1fr);
}

.related-guides__grid--wide .related-card {
	flex-direction: column;
}

.related-guides__grid--wide .related-card__img-wrap {
	width: 100%;
	aspect-ratio: 16 / 9;
}

.related-guides__grid--wide .related-card__body {
	padding: 0 1rem 1rem;
}

/* ==========================================================================
   18. Archive Pages
   ========================================================================== */

/* Archive Header */
.archive-header {
	padding: 2.5rem 0 0;
}

.archive-title {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 2rem;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: var(--text-primary);
	margin: 0;
}

.archive-description {
	font-family: var(--serif);
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--text-secondary);
	margin-top: 0.6rem;
	max-width: 640px;
}

.archive-description p {
	margin: 0;
}

/* Archive Content */
.archive-content {
	padding: 2rem 0 3.5rem;
}

/* Ranking Badge on card thumbnails */
.ranking-badge {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fff;
	background: var(--accent);
	padding: 0.3rem 0.6rem;
	border-radius: 6px;
	line-height: 1;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
	z-index: 1;
}

.ranking-badge svg {
	flex-shrink: 0;
	position: relative;
	top: -1px;
}

/* Make img-wraps position-relative for badge positioning */
.card-img-wrap,
.featured-img-wrap {
	position: relative;
}

/* Numeric Pagination */
.pagination {
	margin-top: 2.5rem;
	display: flex;
	justify-content: center;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	height: 2.2rem;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--text-secondary);
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 8px;
	text-decoration: none;
	transition: all 200ms var(--ease-std);
	padding: 0 0.5rem;
}

.page-numbers:hover {
	border-color: var(--accent);
	color: var(--accent-dark);
}

.page-numbers.current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.page-numbers.dots {
	border: none;
	background: none;
	min-width: auto;
	padding: 0 0.2rem;
	color: var(--text-meta);
}

.page-numbers.prev,
.page-numbers.next {
	font-size: 1rem;
}

/* ==========================================================================
   19. About Page Template
   ========================================================================== */

/* Hero */
.about-hero {
	padding: 3rem 0 2.5rem;
	text-align: center;
}

.about-hero__inner {
	max-width: 640px;
	margin: 0 auto;
}

.about-hero__title {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 2.4rem;
	letter-spacing: -0.035em;
	line-height: 1.15;
	color: var(--text-primary);
	margin: 0 0 1.25rem;
}

.about-hero__intro {
	text-align: left;
}

.about-hero__intro p:last-child {
	margin-bottom: 0;
}

/* Team cards */
.about-team {
	padding: 2rem 0 2.5rem;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
	background: var(--bg-alt);
}

.about-team__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 2.5rem;
	max-width: 820px;
	margin: 0 auto;
}

.about-team__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 1rem;
	padding: 2rem 1.5rem;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 12px;
}

.about-team__avatar-link {
	flex-shrink: 0;
}

.about-team__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid var(--bg-alt);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: border-color 200ms;
}

.about-team__avatar-link:hover .about-team__avatar {
	border-color: var(--accent);
}

.about-team__info {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.about-team__name {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.1rem;
	letter-spacing: -0.015em;
	color: var(--text-primary);
	text-decoration: none;
	transition: color 200ms;
}

.about-team__name:hover {
	color: var(--accent-dark);
}

.about-team__stats {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.75rem;
	color: var(--text-meta);
}

.about-team__bio {
	font-family: var(--serif);
	font-size: 0.85rem;
	line-height: 1.6;
	color: var(--text-secondary);
	margin: 0.4rem 0 0;
}

/* Content sections (alternating) */
.about-section {
	padding: 2.5rem 0;
}

.about-section--alt {
	background: var(--bg-alt);
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.about-section__inner {
	max-width: 680px;
	margin: 0 auto;
}

.about-section__inner h2 {
	margin-top: 0;
}

/* Checkmark-style list items in about sections */
.about-section__inner li {
	position: relative;
	padding-left: 0.25rem;
}

/* ==========================================================================
   20. Static Pages (regulamin, polityka prywatności, etc.)
   ========================================================================== */

.static-page {
	padding: 2.5rem 0 4rem;
}

.static-page__inner {
	max-width: 720px;
	margin: 0 auto;
}

.static-page__title {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 2rem;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: var(--text-primary);
	margin: 0 0 2rem;
}

/* Prose — typographic styles for WYSIWYG content */
.prose {
	font-family: var(--serif);
	font-size: 0.95rem;
	line-height: 1.75;
	color: var(--text-secondary);
}

.prose h2 {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.3rem;
	letter-spacing: -0.02em;
	line-height: 1.3;
	color: var(--text-primary);
	margin: 2.5rem 0 0.75rem;
}

.prose h3 {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1.08rem;
	letter-spacing: -0.015em;
	line-height: 1.35;
	color: var(--text-primary);
	margin: 2rem 0 0.6rem;
}

.prose h4 {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--text-primary);
	margin: 1.5rem 0 0.5rem;
}

.prose p {
	margin: 0 0 1.25rem;
}

.prose a {
	color: var(--accent-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 200ms;
}

.prose a:hover {
	color: var(--accent);
}

.prose ul,
.prose ol {
	margin: 0 0 1.25rem;
	padding-left: 1.5rem;
	list-style: revert;
}

.prose li {
	margin-bottom: 0.35rem;
}

.prose li::marker {
	color: var(--accent);
}

.prose blockquote {
	border-left: 3px solid var(--accent);
	margin: 1.5rem 0;
	padding: 0.5rem 0 0.5rem 1.25rem;
	color: var(--text-secondary);
	font-style: italic;
}

/* Table scroll wrapper (injected by JS for mobile scroll) */
.table-scroll-wrap {
	position: relative;
	margin: 1.5rem 0;
}

.table-scroll-wrap__inner {
	overflow-x: auto;
	border: 1px solid var(--border);
	border-radius: 10px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: var(--border-dark) transparent;
}

.table-scroll-wrap__inner::-webkit-scrollbar {
	height: 4px;
}

.table-scroll-wrap__inner::-webkit-scrollbar-thumb {
	background: var(--border-dark);
	border-radius: 4px;
}

/* Scroll hint — icon below table, visible only when scrollable */
.table-scroll-hint {
	display: none;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.72rem;
	color: var(--text-meta);
	margin-top: 0.5rem;
}

.table-scroll-hint svg {
	flex-shrink: 0;
}

.table-scroll-wrap.is-scrollable .table-scroll-hint {
	display: flex;
}

/* Override WP Gutenberg block-library table styles */
.prose .wp-block-table {
	overflow-x: visible;
}

.prose .wp-block-table thead {
	border-bottom: none;
}

.prose .wp-block-table tfoot {
	border-top: none;
}

.prose .wp-block-table td,
.prose .wp-block-table th {
	border: none;
}

/* Table base styles */
.prose table {
	width: 100%;
	min-width: 600px;
	border-collapse: separate;
	border-spacing: 0;
	font-family: var(--sans);
	font-size: 0.84rem;
	line-height: 1.45;
}

/* When wrapped — remove outer margin (wrapper handles it) */
.table-scroll-wrap table {
	margin: 0;
}

/* When not wrapped (JS disabled) — keep margin + overflow scroll */
.prose > table {
	margin: 1.5rem 0;
	border: 1px solid var(--border);
	border-radius: 10px;
	overflow: hidden;
}

.prose th,
.prose td,
.prose .wp-block-table th,
.prose .wp-block-table td {
	text-align: left;
	padding: 0.7rem 1rem;
	border: none;
	border-bottom: 1px solid var(--border);
}

/* Vertical lines between columns */
.prose th + th,
.prose td + td {
	border-left: 1px solid var(--border);
}

/* Header row */
.prose th {
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-meta);
	background: var(--bg-alt);
}

/* Zebra stripes */
.prose tbody tr:nth-child(even) {
	background: var(--bg-alt);
}

.prose tbody tr:nth-child(odd) {
	background: var(--bg-card);
}

/* Last row — no bottom border */
.prose tbody tr:last-child td {
	border-bottom: none;
}

/* Cell text color */
.prose td {
	color: var(--text-primary);
}


.prose img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 1.5rem 0;
}

.prose hr {
	border: none;
	border-top: 1px solid var(--border);
	margin: 2rem 0;
}

/* ==========================================================================
   20. 404 Page
   ========================================================================== */

.error-404 {
	padding: 3.5rem 0 4rem;
}

.error-404__hero {
	text-align: center;
	max-width: 520px;
	margin: 0 auto 3rem;
}

.error-404__code {
	display: block;
	font-family: var(--sans);
	font-weight: 800;
	font-size: 4.5rem;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--border);
	margin-bottom: 0.75rem;
}

.error-404__title {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.65rem;
	letter-spacing: -0.025em;
	line-height: 1.25;
	color: var(--text-primary);
	margin: 0 0 0.6rem;
}

.error-404__desc {
	font-family: var(--serif);
	font-size: 0.92rem;
	line-height: 1.65;
	color: var(--text-secondary);
	margin: 0 0 1.5rem;
}

/* Search form inside 404 */
.error-404__search {
	max-width: 400px;
	margin: 0 auto 1.25rem;
}

.error-404__search .search-form {
	display: flex;
	gap: 0.5rem;
}

.error-404__search .search-field {
	flex: 1;
	font-family: var(--sans);
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--text-primary);
	background: var(--bg-card);
	border: 1.5px solid var(--border);
	border-radius: 8px;
	padding: 0.7rem 1rem;
	outline: none;
	transition: border-color 240ms;
}

.error-404__search .search-field:focus {
	border-color: var(--accent);
}

.error-404__search .search-submit {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.82rem;
	color: #fff;
	background: var(--accent);
	border: none;
	border-radius: 8px;
	padding: 0.7rem 1.2rem;
	cursor: pointer;
	transition: background 240ms;
	white-space: nowrap;
}

.error-404__search .search-submit:hover {
	background: var(--accent-dark);
}

/* Home link */
.error-404__home {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.85rem;
	color: var(--accent-dark);
	text-decoration: none;
	transition: opacity 200ms;
}

.error-404__home:hover {
	opacity: 0.7;
}

/* Latest articles below */
.error-404__latest {
	border-top: 1px solid var(--border);
	padding-top: 2.5rem;
}

.error-404__latest-title {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.15rem;
	letter-spacing: -0.02em;
	color: var(--text-primary);
	margin: 0 0 1.5rem;
}

/* ==========================================================================
   20. Author Archive — Hero
   ========================================================================== */

.author-hero {
	background: var(--bg-alt);
	border-bottom: 1px solid var(--border);
	padding: 2.5rem 0;
}

.author-hero__inner {
	display: flex;
	align-items: center;
	gap: 1.75rem;
}

.author-hero__avatar-wrap {
	flex-shrink: 0;
}

.author-hero__avatar {
	width: 96px;
	height: 96px;
	border-radius: 50%;
	border: 3px solid var(--bg-card);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	object-fit: cover;
}

.author-hero__info {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.author-hero__name {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.65rem;
	letter-spacing: -0.025em;
	line-height: 1.2;
	color: var(--text-primary);
	margin: 0;
}

.author-hero__bio {
	font-family: var(--serif);
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--text-secondary);
	margin: 0;
	max-width: 540px;
}

.author-hero__stats {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.78rem;
	color: var(--text-meta);
	margin-top: 0.15rem;
}

/* ==========================================================================
   20. Ranking Archive — Filters
   ========================================================================== */

/* Filter container */
.ranking-filters {
	margin-bottom: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.2rem;
}

/* "Wszystkie" chip — standalone at top */
.ranking-filters > .ranking-chip {
	align-self: flex-start;
}

/* Filter group (label + chips row) */
.ranking-filter-group {
	display: flex;
	align-items: baseline;
	gap: 0.75rem;
}

.ranking-filter-group__label {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--text-meta);
	white-space: nowrap;
	min-width: 5.5rem;
}

.ranking-filter-group__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

/* Individual chip */
.ranking-chip {
	display: inline-flex;
	align-items: center;
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.78rem;
	color: var(--text-secondary);
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: 8px;
	padding: 0.4rem 0.85rem;
	cursor: pointer;
	transition: all 200ms var(--ease-std);
	white-space: nowrap;
}

.ranking-chip:hover {
	border-color: var(--accent);
	color: var(--accent-dark);
}

.ranking-chip.active {
	background: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

/* Hidden cards transition */
.ranking-grid .article-card[hidden] {
	display: none;
}

/* Empty state */
.ranking-empty {
	text-align: center;
	padding: 3rem 0;
}

.ranking-empty p {
	font-family: var(--sans);
	font-size: 0.92rem;
	color: var(--text-meta);
}

/* Mobile TOC accordion — visible only on mobile */
.mobile-toc {
	display: none;
}

@media (max-width: 768px) {
	.mobile-toc {
		display: block;
		background: var(--bg-card);
		border: 1px solid var(--border);
		border-radius: 12px;
		margin-bottom: 1.5rem;
		font-family: var(--sans);
	}

	.mobile-toc__toggle {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		padding: 0.875rem 1.125rem;
		cursor: pointer;
		list-style: none;
		user-select: none;
	}

	.mobile-toc__toggle::-webkit-details-marker {
		display: none;
	}

	.mobile-toc__title {
		font-weight: 700;
		font-size: 0.82rem;
		text-transform: uppercase;
		letter-spacing: 0.08em;
		color: var(--text-primary);
	}

	.mobile-toc__icon {
		transition: transform 0.2s var(--ease-std);
		flex-shrink: 0;
		color: var(--text-meta);
	}

	.mobile-toc[open] .mobile-toc__icon {
		transform: rotate(180deg);
	}

	.mobile-toc__list {
		list-style: none;
		margin: 0;
		padding: 0 1.125rem 0.875rem;
		counter-reset: mtoc;
		border-top: 1px solid var(--border);
		padding-top: 0.75rem;
	}

	.mobile-toc__item {
		counter-increment: mtoc;
	}

	.mobile-toc__link {
		display: flex;
		gap: 0.6rem;
		font-weight: 500;
		font-size: 0.84rem;
		line-height: 1.4;
		color: var(--text-secondary);
		padding: 0.4rem 0;
		text-decoration: none;
		transition: color 0.15s;
	}

	.mobile-toc__link::before {
		content: counter(mtoc, decimal-leading-zero);
		font-weight: 600;
		font-size: 0.72rem;
		color: var(--text-meta);
		min-width: 1.4em;
		flex-shrink: 0;
	}

	.mobile-toc__link:hover {
		color: var(--accent-dark);
	}
}

/* ==========================================================================
   17. Single Post Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.single-layout {
		grid-template-columns: 1fr 280px;
		gap: 2.5rem;
	}

	.related-guides__grid--wide {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.single-layout {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}

	.single-sidebar__inner {
		position: static;
	}

	.sidebar-toc {
		display: none;
	}

	.single-title {
		font-size: 1.6rem;
	}

	.related-guides__grid,
	.related-guides__grid--wide {
		grid-template-columns: 1fr;
	}

	.related-card {
		flex-direction: column;
	}

	.related-card__img-wrap {
		width: 100%;
		aspect-ratio: 16 / 9;
	}

	.related-card__body {
		padding: 0 1rem 1rem;
	}

	.ranking-toc__list {
		columns: 1;
	}

	.single-post-nav .nav-links {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.single-post-nav .nav-next {
		text-align: left;
	}
}

/* ==========================================================================
   Reactions Bar
   ========================================================================== */

.reactions-bar {
	margin-top: 16px;
}

.reactions-bar__pill {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
	overflow: visible;
	font-family: var(--sans);
}

/* Like Button */
.reactions-bar__like {
	display: flex;
	align-items: center;
	align-self: stretch;
	gap: 6px;
	padding: 7px 14px 7px 12px;
	border: none;
	background: none;
	cursor: pointer;
	border-radius: 20px 0 0 20px;
	transition: background 0.15s, color 0.15s;
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary);
	font-family: inherit;
	white-space: nowrap;
}

.reactions-bar__like:hover,
.reactions-bar__like.is-active {
	color: var(--accent);
	background: var(--accent-light);
}

.reactions-bar__like-emoji {
	font-size: 15px;
	line-height: 1;
}

/* Divider */
.reactions-bar__divider {
	width: 1px;
	height: 20px;
	background: var(--border);
}

/* Summary */
.reactions-bar__summary {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 7px 14px;
	cursor: pointer;
	border-radius: 0 999px 999px 0;
	transition: background 0.15s;
}

.reactions-bar__summary:hover {
	background: rgba(0, 0, 0, 0.03);
}

/* Bubbles (top 2 emoji) */
.reactions-bar__bubbles {
	display: inline-flex;
	align-items: center;
}

.reactions-bar__bubble {
	font-size: 14px;
	line-height: 1;
}

.reactions-bar__bubble--back {
	z-index: 1;
}

.reactions-bar__bubble--front {
	z-index: 2;
	margin-left: -6px;
}

/* Total count */
.reactions-bar__total {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary);
}

/* Expandable Panel — fixed popover positioned by JS */
.reactions-panel {
	position: fixed;
	display: inline-flex;
	gap: 2px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: 6px 10px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s, visibility 0.15s;
	z-index: 1000;
}

.reactions-panel.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Panel Buttons */
.reactions-panel__btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 44px;
	padding: 6px 0;
	border: none;
	background: none;
	border-radius: 12px;
	cursor: pointer;
	transition: background 0.15s, transform 0.15s;
	font-family: inherit;
}

.reactions-panel__btn:hover {
	background: rgba(0, 0, 0, 0.04);
}

.reactions-panel__btn.is-active {
	background: var(--accent-light);
}

.reactions-panel__emoji {
	font-size: 20px;
	transition: transform 0.15s;
}

.reactions-panel__emoji.is-popping {
	animation: emoji-pop 0.3s var(--ease-out);
}

@keyframes emoji-pop {
	0%   { transform: scale(1); }
	40%  { transform: scale(1.5); }
	100% { transform: scale(1); }
}

.reactions-panel__btn:hover .reactions-panel__emoji {
	transform: none;
}

.reactions-panel__count {
	font-size: 10px;
	font-family: var(--sans);
	color: var(--text-muted);
	min-height: 14px;
	margin-top: 4px;
}

/* Responsive */
@media (max-width: 600px) {
	.reactions-bar__like-label {
		font-size: 11px;
	}
}

/* ==========================================================================
   Search Results
   ========================================================================== */

/* Search Header */
.search-header {
	padding: 2.5rem 0 2rem;
	border-bottom: 1px solid var(--border);
}

.search-header__label {
	font-family: var(--sans);
	font-size: 0.82rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--text-meta);
	margin-bottom: 0.4rem;
}

.search-header__query {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 2rem;
	letter-spacing: -0.03em;
	line-height: 1.2;
	color: var(--text-primary);
	margin: 0;
}

.search-header__count {
	font-family: var(--serif);
	font-size: 0.92rem;
	color: var(--text-secondary);
	margin-top: 0.5rem;
}

.search-header__count strong {
	font-weight: 700;
	color: var(--text-primary);
}

.search-header__form {
	margin-top: 1.2rem;
	max-width: 480px;
}

.search-header__form .search-form {
	display: flex;
	gap: 0.5rem;
}

.search-header__form .search-field {
	flex: 1;
	font-family: var(--sans);
	font-size: 0.92rem;
	padding: 0.6rem 1rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--bg-card);
	color: var(--text-primary);
	transition: border-color 200ms var(--ease-std);
}

.search-header__form .search-field:focus {
	outline: none;
	border-color: var(--accent);
}

.search-header__form .search-submit {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.6rem 1.2rem;
	border: none;
	border-radius: 8px;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	transition: background 200ms var(--ease-std);
}

.search-header__form .search-submit:hover {
	background: var(--accent-dark);
}

/* Search Results List */
.search-results {
	padding: 2rem 0 3.5rem;
}

.search-results__list {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Search Card — horizontal layout */
.search-card {
	display: flex;
	gap: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border);
}

.search-card:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.search-card__img {
	position: relative;
	flex-shrink: 0;
	width: 220px;
	aspect-ratio: 16 / 10;
	border-radius: 10px;
	overflow: hidden;
}

.search-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 500ms var(--ease-out);
}

.search-card__img:hover img {
	transform: scale(1.03);
}

.search-card__body {
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
	flex: 1;
	min-width: 0;
}

.search-card__title {
	font-family: var(--sans);
	font-weight: 700;
	font-size: 1.1rem;
	letter-spacing: -0.015em;
	line-height: 1.35;
	color: var(--text-primary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.search-card__title a {
	color: inherit;
	text-decoration: none;
	transition: color 240ms var(--ease-std);
}

.search-card__title a:hover {
	color: var(--accent-dark);
}

.search-card__excerpt {
	font-family: var(--serif);
	font-size: 0.88rem;
	line-height: 1.6;
	color: var(--text-secondary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.search-card__footer {
	margin-top: auto;
}

/* No Results */
.no-results {
	text-align: center;
	padding: 4rem 1rem;
}

.no-results__icon {
	color: var(--text-meta);
	margin-bottom: 1.2rem;
}

.no-results__title {
	font-family: var(--sans);
	font-weight: 800;
	font-size: 1.5rem;
	letter-spacing: -0.02em;
	color: var(--text-primary);
	margin-bottom: 0.6rem;
}

.no-results__text {
	font-family: var(--serif);
	font-size: 0.95rem;
	color: var(--text-secondary);
	max-width: 440px;
	margin: 0 auto 1.5rem;
}

.no-results__text a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.no-results__text a:hover {
	color: var(--accent-dark);
}

.no-results__search {
	max-width: 400px;
	margin: 0 auto;
}

.no-results__search .search-form {
	display: flex;
	gap: 0.5rem;
}

.no-results__search .search-field {
	flex: 1;
	font-family: var(--sans);
	font-size: 0.92rem;
	padding: 0.6rem 1rem;
	border: 1px solid var(--border);
	border-radius: 8px;
	background: var(--bg-card);
	color: var(--text-primary);
}

.no-results__search .search-field:focus {
	outline: none;
	border-color: var(--accent);
}

.no-results__search .search-submit {
	font-family: var(--sans);
	font-weight: 600;
	font-size: 0.85rem;
	padding: 0.6rem 1.2rem;
	border: none;
	border-radius: 8px;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	transition: background 200ms var(--ease-std);
}

.no-results__search .search-submit:hover {
	background: var(--accent-dark);
}

/* Search responsive */
@media (max-width: 768px) {
	.search-header__query {
		font-size: 1.5rem;
	}

	.search-card {
		flex-direction: column;
		gap: 0.8rem;
	}

	.search-card__img {
		width: 100%;
		aspect-ratio: 16 / 9;
	}
}

@media (max-width: 480px) {
	.search-header__form {
		max-width: 100%;
	}
}

/* ==========================================================================
   Accessibility — Focus indicators
   ========================================================================== */

:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* Inputs already have border-color change on focus; add ring for keyboard users */
.header-search-form .search-field:focus-visible,
.newsletter-input:focus-visible,
.contact-form__input:focus-visible,
.comment-form input:focus-visible,
.comment-form textarea:focus-visible,
.error-404__search .search-field:focus-visible,
.search-header__form .search-field:focus-visible,
.no-results__search .search-field:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: -1px;
}

/* Buttons & interactive elements — consistent ring */
.reactions-bar__like:focus-visible,
.reactions-panel__btn:focus-visible,
.rank-math-question:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* ==========================================================================
   Accessibility — Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	/* Disable scroll reveal — show elements immediately */
	.js .reveal {
		opacity: 1;
		transform: none;
	}

	/* Disable image hover zooms */
	.card-img img,
	.featured-img-wrap img,
	.ranking-box__img img,
	.news-card__img img,
	.search-card__img img {
		transform: none !important;
	}
}
