/*
Theme Name: Ogrodniczy
Theme URI: https://roial.pl
Author: Roial
Author URI: https://roial.pl
Description: Lekki, szybki motyw bloga ogrodniczego - uprawa warzyw, rośliny ozdobne, sad, trawnik i narzędzia. Naturalna zielona paleta z konfigurowalnym kolorem głównym, kalendarz ogrodnika na bieżący miesiąc na stronie głównej, kafelki działów, bloczek najnowszych wpisów przy artykule i płaska stopka. Automatycznie tworzy strony Kontakt, O nas, Regulamin i Polityka prywatności, w których dane serwisu (nazwa, domena, e-mail) uzupełniają się same. Bez jQuery i bez zewnętrznych fontów: tryb ciemny, okruszki nawigacyjne, czas czytania, dane strukturalne BlogPosting i BreadcrumbList.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: womenblog
Tags: blog, news, magazine, dark-mode, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Zmienne / motyw kolorystyczny
   ========================================================================== */

:root {
	--wb-accent: #2f7d4f;
	--wb-accent-contrast: #ffffff;
	--wb-link: var(--wb-accent);
	--wb-earth: #b4703a;
	--wb-bg: #ffffff;
	--wb-surface: #f3f7f0;
	--wb-surface-2: #e8f0e2;
	--wb-text: #1a2419;
	--wb-text-soft: #3c4a3b;
	--wb-muted: #6e7a6b;
	--wb-border: #dfe8da;
	--wb-topbar-bg: #1d3a24;
	--wb-topbar-text: #e4efe2;
	--wb-scrim: rgba(11, 26, 14, .92);
	--wb-shadow: 0 6px 24px rgba(26, 54, 32, .09);
	--wb-shadow-sm: 0 2px 10px rgba(26, 54, 32, .06);
	--wb-radius: 16px;
	--wb-radius-sm: 10px;
	--wb-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wb-font-display: Georgia, "Times New Roman", "Palatino Linotype", serif;
	--wb-maxw: 1240px;
}

html[data-theme="dark"] {
	--wb-bg: #121a13;
	--wb-surface: #1a241b;
	--wb-surface-2: #222e23;
	--wb-text: #e7efe5;
	--wb-text-soft: #c6d3c4;
	--wb-muted: #8f9d8d;
	--wb-border: #2c3a2d;
	--wb-topbar-bg: #0c150d;
	--wb-topbar-text: #d9e6d7;
	--wb-earth: #d29765;
	--wb-link: #6fbe86;
	--wb-shadow: 0 6px 24px rgba(0, 0, 0, .45);
	--wb-shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
}

/* Rozjaśnienie koloru akcentu w trybie ciemnym, z zachowaniem wyboru z Customizera. */
@supports (color: color-mix(in srgb, red, white)) {
	html[data-theme="dark"] {
		--wb-link: color-mix(in srgb, var(--wb-accent) 60%, #ffffff);
	}
}

/* ==========================================================================
   2. Reset i baza
   ========================================================================== */

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

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

body {
	margin: 0;
	font-family: var(--wb-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--wb-text);
	background: var(--wb-bg);
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--wb-link); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wb-font-display);
	line-height: 1.22;
	font-weight: 700;
	margin: 0 0 .6em;
	color: var(--wb-text);
	overflow-wrap: break-word;
}

p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.4em; }

/* Ikony SVG motywu */
.wb-ico {
	width: 1.15em;
	height: 1.15em;
	flex: none;
	vertical-align: -.18em;
}

blockquote {
	margin: 1.4em 0;
	padding: 1em 1.3em;
	border-left: 4px solid var(--wb-accent);
	background: var(--wb-surface);
	border-radius: 0 var(--wb-radius) var(--wb-radius) 0;
	font-style: italic;
}

.wb-table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--wb-border); border-radius: var(--wb-radius); }
.wb-table-wrap table, .wb-table-wrap .wp-block-table { margin: 0; border: 0; }
table { border-collapse: collapse; width: 100%; margin: 1.4em 0; font-size: .95em; }
th, td { padding: .7em 1em; text-align: left; border-bottom: 1px solid var(--wb-border); }
thead th, table tr:first-child th {
	background: var(--wb-topbar-bg);
	color: var(--wb-topbar-text);
	font-weight: 700;
	border-bottom: 0;
}
tbody tr:nth-child(even) { background: var(--wb-surface); }
tbody tr:hover { background: var(--wb-surface-2); }
tbody tr:last-child td { border-bottom: 0; }
.wp-block-table { overflow-x: auto; }

pre, code {
	background: var(--wb-surface);
	border-radius: 6px;
	font-size: .92em;
}
code { padding: .15em .4em; }
pre { padding: 1em; overflow-x: auto; }
pre code { padding: 0; background: none; }

hr { border: 0; border-top: 1px solid var(--wb-border); margin: 2em 0; }

button, input, select, textarea { font: inherit; color: inherit; }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], textarea {
	width: 100%;
	padding: .65em .9em;
	border: 1px solid var(--wb-border);
	border-radius: var(--wb-radius-sm);
	background: var(--wb-bg);
	color: var(--wb-text);
}
input:focus, textarea:focus { outline: 2px solid var(--wb-accent); outline-offset: 1px; border-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--wb-accent); outline-offset: 3px; border-radius: 4px; }

.wb-btn,
button[type="submit"],
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: .65em 1.4em;
	background: var(--wb-accent);
	color: var(--wb-accent-contrast);
	border: 0;
	border-radius: 999px;
	font-weight: 600;
	cursor: pointer;
	transition: filter .15s ease;
}
.wb-btn:hover, button[type="submit"]:hover, input[type="submit"]:hover { filter: brightness(1.12); color: var(--wb-accent-contrast); }

.wb-btn--ghost {
	background: transparent;
	color: var(--wb-link);
	border: 1px solid var(--wb-border);
}
.wb-btn--ghost:hover { background: var(--wb-surface); color: var(--wb-link); filter: none; }

/* Dostępność */
.screen-reader-text {
	position: absolute !important;
	clip-path: inset(50%);
	width: 1px; height: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	background: var(--wb-accent);
	color: #fff;
	padding: .6em 1em;
	border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* Elementy WP */
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { display: block; margin: 1.4em auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption {
	font-size: .85em;
	color: var(--wb-muted);
	margin-top: .5em;
	text-align: center;
}
.sticky { /* wymagane przez WP */ }
.bypostauthor { /* wymagane przez WP */ }

.wb-container {
	max-width: var(--wb-maxw);
	margin: 0 auto;
	padding: 0 20px;
}

/* ==========================================================================
   3. Pasek górny
   ========================================================================== */

.wb-topbar {
	background: var(--wb-topbar-bg);
	color: var(--wb-topbar-text);
	font-size: .82rem;
}
.wb-topbar .wb-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 36px;
}
.wb-topbar__date { display: inline-flex; align-items: center; gap: 7px; }
.wb-topbar__ico { opacity: .75; width: 1em; height: 1em; }
.wb-topbar__tagline { opacity: .92; text-align: right; }

/* ==========================================================================
   4. Nagłówek
   ========================================================================== */

.wb-header {
	background: var(--wb-bg);
	border-bottom: 1px solid var(--wb-border);
	position: relative;
	z-index: 50;
}
.wb-header .wb-container {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 76px;
}

.wb-branding { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wb-branding img.custom-logo { max-height: 46px; width: auto; }
.wb-site-title {
	margin: 0;
	font-family: var(--wb-font-display);
	font-size: 1.65rem;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1;
}
.wb-site-title a { display: inline-flex; align-items: center; gap: 6px; }
.wb-site-title a:hover { color: var(--wb-text); }
.wb-leafmark { color: var(--wb-accent); display: inline-flex; }
.wb-leafmark .wb-ico { width: .72em; height: .72em; stroke-width: 2; vertical-align: baseline; }

.wb-header__tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.wb-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border: 0;
	background: transparent;
	border-radius: 50%;
	cursor: pointer;
	color: var(--wb-text);
}
.wb-icon-btn:hover { background: var(--wb-surface); color: var(--wb-link); }
.wb-icon-btn svg { width: 20px; height: 20px; }

html[data-theme="dark"] .wb-icon--sun { display: inline; }
html[data-theme="dark"] .wb-icon--moon { display: none; }
.wb-icon--sun { display: none; }

/* Wyszukiwarka - nakładka */
.wb-search-overlay {
	display: none;
	position: absolute;
	left: 0; right: 0; top: 100%;
	background: var(--wb-bg);
	border-bottom: 1px solid var(--wb-border);
	box-shadow: var(--wb-shadow);
	padding: 22px 0;
	z-index: 55;
}
.wb-search-overlay.is-open { display: block; }
.wb-search-overlay form { display: flex; gap: 10px; max-width: 720px; margin: 0 auto; padding: 0 20px; }
.wb-search-overlay input[type="search"] { font-size: 1.05rem; }

/* ==========================================================================
   5. Pasek kategorii
   ========================================================================== */

.wb-catbar {
	background: var(--wb-surface);
	border-bottom: 1px solid var(--wb-border);
	font-size: .92rem;
}
.wb-catbar .wb-container { display: flex; align-items: center; gap: 10px; min-height: 48px; }
.wb-catbar__icon { color: var(--wb-accent); display: inline-flex; flex-shrink: 0; }
.wb-catbar__icon svg { width: 19px; height: 19px; }
.wb-catbar ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	align-items: center;
	gap: 4px;
	overflow-x: auto;
	scrollbar-width: none;
	flex: 1 1 auto;
}
.wb-catbar ul::-webkit-scrollbar { display: none; }
.wb-catbar li { flex-shrink: 0; }
.wb-catbar a {
	display: block;
	padding: .35em .9em;
	font-weight: 600;
	white-space: nowrap;
	border-radius: 999px;
}
.wb-catbar a:hover { background: var(--wb-bg); color: var(--wb-link); }
.wb-catbar__rss { margin-left: auto; flex-shrink: 0; width: 34px; height: 34px; }
.wb-catbar__rss svg { width: 17px; height: 17px; }

/* ==========================================================================
   6. Okruszki nawigacyjne
   ========================================================================== */

.wb-crumbs { margin: 0 0 22px; font-size: .84rem; color: var(--wb-muted); }
.wb-crumbs ol {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 6px;
}
.wb-crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.wb-crumbs a { color: var(--wb-muted); }
.wb-crumbs a:hover { color: var(--wb-link); }
.wb-crumbs__sep { width: .82em; height: .82em; opacity: .55; }
.wb-crumbs [aria-current="page"] { color: var(--wb-text-soft); font-weight: 600; }

/* ==========================================================================
   7. Strona główna - wyróżniony wpis
   ========================================================================== */

.wb-main { padding: 30px 0 50px; }

.wb-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
	gap: 40px;
	margin-bottom: 46px;
}

.wb-feature {
	position: relative;
	border-radius: var(--wb-radius);
	overflow: hidden;
	background: var(--wb-surface);
	box-shadow: var(--wb-shadow-sm);
}
.wb-feature__media a { display: block; }
.wb-feature__media img,
.wb-feature__media .wb-noimg {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: 0;
	transition: transform .4s ease;
}
.wb-feature:hover .wb-feature__media img { transform: scale(1.03); }
.wb-feature__body {
	position: absolute;
	inset: auto 0 0 0;
	padding: 30px 32px 26px;
	color: #fff;
	background: linear-gradient(to top, var(--wb-scrim) 12%, rgba(11, 26, 14, .74) 52%, rgba(11, 26, 14, 0) 100%);
}
.wb-feature__title {
	font-size: clamp(1.45rem, 2.5vw, 2.1rem);
	letter-spacing: -.01em;
	margin: .28em 0 .38em;
	color: #fff;
}
.wb-feature__title a { color: #fff; }
.wb-feature__title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.wb-feature__excerpt {
	font-size: .97rem;
	margin: 0 0 .8em;
	color: rgba(255, 255, 255, .88);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 62ch;
}
.wb-feature__body .wb-kicker,
.wb-feature__body .wb-kicker a,
.wb-feature__body .wb-meta { color: rgba(255, 255, 255, .9); }
.wb-feature__body .wb-kicker__leaf { color: #9fd7ad; }
.wb-feature__body .wb-kicker a:hover { color: #fff; text-decoration: underline; }

/* Kicker (kategorie) */
.wb-kicker {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: .84rem;
	font-weight: 700;
}
.wb-kicker__leaf { color: var(--wb-accent); width: 1em; height: 1em; }
.wb-kicker a { color: var(--wb-text); }
.wb-kicker a:hover { color: var(--wb-link); }
.wb-kicker .wb-kicker__sep { color: var(--wb-muted); font-weight: 400; }

.wb-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
	color: var(--wb-muted);
	font-size: .84rem;
}
.wb-meta__time { display: inline-flex; align-items: center; gap: 6px; }
.wb-meta .wb-ico { width: 1em; height: 1em; }

/* Lista boczna */
.wb-hero__aside-title {
	font-family: var(--wb-font);
	font-size: .78rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: var(--wb-muted);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--wb-accent);
}
.wb-sidelist { display: flex; flex-direction: column; }
.wb-sideitem {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 116px;
	gap: 16px;
	padding: 16px 0;
}
.wb-sideitem + .wb-sideitem { border-top: 1px solid var(--wb-border); }
.wb-sideitem:first-child { padding-top: 0; }
.wb-sideitem__title { font-size: 1rem; font-weight: 700; margin: .3em 0 .45em; }
.wb-sideitem__title a:hover { color: var(--wb-link); }
.wb-sideitem__media img,
.wb-sideitem__media .wb-noimg {
	width: 116px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--wb-radius-sm);
}
.wb-sideitem .wb-kicker { font-size: .77rem; }
.wb-sideitem .wb-meta { font-size: .77rem; }

/* ==========================================================================
   8. Kalendarz ogrodnika
   ========================================================================== */

.wb-garden {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	gap: 36px;
	align-items: start;
	margin-bottom: 46px;
	padding: 32px 34px;
	border: 1px solid var(--wb-border);
	border-radius: var(--wb-radius);
	background:
		radial-gradient(circle at 96% 8%, rgba(47, 125, 79, .10), transparent 45%),
		radial-gradient(circle at 4% 96%, rgba(180, 112, 58, .10), transparent 42%),
		var(--wb-surface);
}
.wb-garden__badge {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: .32em .9em;
	border-radius: 999px;
	background: var(--wb-bg);
	border: 1px solid var(--wb-border);
	color: var(--wb-earth);
	font-size: .76rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
}
.wb-garden__title {
	font-size: clamp(1.4rem, 2.4vw, 1.95rem);
	margin: .5em 0 .35em;
}
.wb-garden__lead { color: var(--wb-text-soft); font-size: .96rem; margin: 0; max-width: 46ch; }

.wb-garden__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 26px;
}
.wb-garden__list li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 11px;
	align-items: start;
	font-size: .94rem;
	line-height: 1.5;
	color: var(--wb-text-soft);
}
.wb-garden__ico {
	width: 21px;
	height: 21px;
	color: var(--wb-accent);
	margin-top: .1em;
}

/* ==========================================================================
   9. Sekcje i karty
   ========================================================================== */

.wb-section { margin-bottom: 46px; }
.wb-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	border-bottom: 2px solid var(--wb-accent);
	padding-bottom: 10px;
	margin-bottom: 24px;
}
.wb-section__title {
	font-size: 1.3rem;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.wb-section__title .wb-ico { color: var(--wb-accent); width: .95em; height: .95em; }
.wb-section__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: .88rem;
	font-weight: 600;
	color: var(--wb-muted);
	white-space: nowrap;
}
.wb-section__more:hover { color: var(--wb-link); }
.wb-section__more .wb-ico { width: 1em; height: 1em; }

.wb-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 30px 28px;
}
.wb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wb-grid--1 { grid-template-columns: minmax(0, 620px); }

.wb-card { display: flex; flex-direction: column; }
.wb-card__media { margin-bottom: 14px; }
.wb-card__media a { display: block; overflow: hidden; border-radius: var(--wb-radius); }
.wb-card__media img,
.wb-card__media .wb-noimg {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	border-radius: var(--wb-radius);
	transition: transform .35s ease;
}
.wb-card:hover .wb-card__media img { transform: scale(1.04); }
.wb-card__title { font-size: 1.04rem; font-weight: 700; margin: .35em 0 .5em; }
.wb-card__title a:hover { color: var(--wb-link); }
.wb-card__excerpt { color: var(--wb-text-soft); font-size: .88rem; margin-bottom: .6em; }
.wb-card .wb-kicker { font-size: .77rem; }
.wb-card .wb-meta { margin-top: auto; font-size: .77rem; }

/* Zaślepka miniatury */
.wb-noimg {
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: var(--wb-radius);
	background: linear-gradient(135deg, var(--wb-accent) 0%, #17331f 100%);
	font-family: var(--wb-font-display);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, .88);
	font-size: 2rem;
	font-weight: 800;
}
.wb-sideitem .wb-noimg { font-size: 1.2rem; }

/* ==========================================================================
   10. Kafelki działów
   ========================================================================== */

.wb-cats__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}
.wb-cats__tile {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	height: 100%;
	padding: 18px 20px;
	border: 1px solid var(--wb-border);
	border-radius: var(--wb-radius);
	background: var(--wb-bg);
	transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.wb-cats__tile:hover {
	border-color: var(--wb-accent);
	transform: translateY(-2px);
	box-shadow: var(--wb-shadow-sm);
	color: var(--wb-text);
}
.wb-cats__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	margin-bottom: 6px;
	border-radius: 50%;
	background: var(--wb-surface);
	color: var(--wb-accent);
}
.wb-cats__icon .wb-ico { width: 21px; height: 21px; }
.wb-cats__name { font-weight: 700; font-size: 1rem; }
.wb-cats__count { font-size: .8rem; color: var(--wb-muted); }

/* ==========================================================================
   11. Archiwa, wyniki wyszukiwania
   ========================================================================== */

.wb-page-head { margin-bottom: 32px; }
.wb-page-head__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .2em; }
.wb-page-head__desc { color: var(--wb-muted); max-width: 720px; }

.wb-pagination { display: flex; justify-content: center; margin-top: 44px; }
.wb-pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.wb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--wb-border);
	border-radius: var(--wb-radius-sm);
	font-weight: 600;
	font-size: .92rem;
}
.wb-pagination .page-numbers.current {
	background: var(--wb-accent);
	color: var(--wb-accent-contrast);
	border-color: var(--wb-accent);
}
.wb-pagination a.page-numbers:hover { border-color: var(--wb-accent); color: var(--wb-link); }

/* ==========================================================================
   12. Pojedynczy artykuł / strona
   ========================================================================== */

.wb-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	max-width: 1160px;
	margin: 0 auto;
}
.wb-single--full { grid-template-columns: minmax(0, 1fr); max-width: 780px; }
.wb-single__main { min-width: 0; }

.wb-latest__box {
	position: sticky;
	top: 24px;
	background: var(--wb-bg);
	border: 1px solid var(--wb-border);
	border-radius: var(--wb-radius);
	box-shadow: var(--wb-shadow-sm);
	padding: 20px 22px;
}
.wb-latest__title {
	font-family: var(--wb-font);
	font-size: .82rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .1em;
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--wb-accent);
}
.wb-latest__list { list-style: none; margin: 0; padding: 0; }
.wb-latest__list li + li { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--wb-border); }
.wb-latest__link {
	display: grid;
	grid-template-columns: 86px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
}
.wb-latest__thumb img,
.wb-latest__thumb .wb-noimg {
	width: 86px;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--wb-radius-sm);
	font-size: 1.1rem;
}
.wb-latest__text { font-weight: 700; font-size: .9rem; line-height: 1.35; }
.wb-latest__link:hover .wb-latest__text { color: var(--wb-link); }

.wb-article { max-width: 780px; margin: 0 auto; }
.wb-article__header { margin-bottom: 28px; }
.wb-article__title {
	font-size: clamp(1.8rem, 4vw, 2.7rem);
	letter-spacing: -.01em;
	margin: .35em 0 .45em;
}
.wb-article__meta {
	border-top: 1px solid var(--wb-border);
	border-bottom: 1px solid var(--wb-border);
	padding: 12px 0;
}
.wb-article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.wb-article__thumb { margin: 0 0 30px; }
.wb-article__thumb img { width: 100%; border-radius: var(--wb-radius); }

.wb-content { font-size: 1.06rem; }
.wb-content h2 {
	font-size: 1.5rem;
	margin-top: 1.7em;
	padding-left: .55em;
	border-left: 4px solid var(--wb-accent);
}
.wb-content h3 { font-size: 1.25rem; margin-top: 1.4em; }
.wb-content a { color: var(--wb-link); text-decoration: underline; text-underline-offset: 3px; }
.wb-content a:hover { text-decoration-thickness: 2px; }
.wb-content img { border-radius: var(--wb-radius); }
.wb-content ul li, .wb-content ol li { margin-bottom: .45em; }

.wb-page-links { margin: 1.6em 0; font-weight: 600; }
.wb-page-links a { color: var(--wb-link); margin-left: .4em; }

.wb-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 0; }
.wb-tags a {
	display: inline-block;
	padding: .35em .9em;
	background: var(--wb-surface);
	border: 1px solid var(--wb-border);
	border-radius: 999px;
	font-size: .82rem;
	font-weight: 600;
}
.wb-tags a:hover { background: var(--wb-accent); border-color: var(--wb-accent); color: var(--wb-accent-contrast); }

.wb-authorbox {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	background: var(--wb-surface);
	border: 1px solid var(--wb-border);
	border-radius: var(--wb-radius);
	padding: 22px;
	margin-top: 38px;
}
.wb-authorbox img { border-radius: 50%; flex-shrink: 0; }
.wb-authorbox__name { font-size: 1.05rem; margin-bottom: .3em; }
.wb-authorbox__bio { font-size: .9rem; color: var(--wb-text-soft); margin: 0; }

.wb-related { max-width: 1100px; margin: 56px auto 0; }

/* Nawigacja wpisów poprzedni/następny */
.wb-postnav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 38px;
	padding-top: 24px;
	border-top: 1px solid var(--wb-border);
	font-size: .92rem;
}
.wb-postnav span { display: block; color: var(--wb-muted); font-size: .8rem; margin-bottom: .3em; }
.wb-postnav a { font-weight: 700; }
.wb-postnav a:hover { color: var(--wb-link); }
.wb-postnav__next { text-align: right; }

/* ==========================================================================
   13. Komentarze
   ========================================================================== */

.wb-comments { max-width: 780px; margin: 48px auto 0; }
.wb-comments__title { font-size: 1.3rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .comment { border-top: 1px solid var(--wb-border); padding: 20px 0; }
.comment-list .children { list-style: none; padding-left: 34px; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author .avatar { border-radius: 50%; }
.comment-metadata { font-size: .8rem; color: var(--wb-muted); margin: .3em 0 .7em; }
.comment-content { font-size: .95rem; }
.comment-reply-link { font-size: .82rem; font-weight: 600; color: var(--wb-link); }
.comment-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: .3em; }
.comment-form p { margin-bottom: 1em; }

/* ==========================================================================
   14. Stopka
   ========================================================================== */

.wb-footer {
	background: var(--wb-surface);
	color: var(--wb-text-soft);
	margin-top: 60px;
	border-top: 1px solid var(--wb-border);
}
.wb-footer a { color: var(--wb-text); }
.wb-footer a:hover { color: var(--wb-link); }

.wb-footer__nav { padding: 26px 0; }
.wb-footer__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 36px;
}
.wb-footer__nav a { font-weight: 600; font-size: .95rem; }

.wb-footer__bottom {
	border-top: 1px solid var(--wb-border);
	padding: 16px 0;
	font-size: .85rem;
	text-align: center;
	color: var(--wb-muted);
}

/* ==========================================================================
   15. 404 / brak wyników
   ========================================================================== */

.wb-empty { text-align: center; padding: 60px 0; }
.wb-empty__code { font-size: 5rem; font-weight: 800; color: var(--wb-accent); line-height: 1; margin-bottom: .2em; }
.wb-empty form { max-width: 480px; margin: 1.6em auto 0; display: flex; gap: 10px; }

/* ==========================================================================
   16. Responsywność
   ========================================================================== */

@media (max-width: 1080px) {
	.wb-hero { grid-template-columns: 1fr; gap: 32px; }
	.wb-grid, .wb-grid--3, .wb-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wb-cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.wb-garden { grid-template-columns: 1fr; gap: 24px; }
	.wb-single { grid-template-columns: 1fr; gap: 40px; }
	.wb-latest { width: 100%; max-width: 780px; margin: 0 auto; }
	.wb-latest__box { position: static; }
}

@media (max-width: 860px) {
	.wb-garden { padding: 26px 24px; }
}

@media (max-width: 640px) {
	.wb-main { padding: 22px 0 40px; }

	/* Nagłówek: tytuł nie może wypychać przycisków poza ekran */
	.wb-header .wb-container { gap: 10px; min-height: 64px; }
	.wb-branding { min-width: 0; }
	.wb-site-title { font-size: 1.3rem; }
	.wb-site-title a { overflow-wrap: anywhere; }
	.wb-header__tools { gap: 0; }
	.wb-icon-btn { width: 38px; height: 38px; }
	.wb-container { padding: 0 16px; }
	.wb-grid, .wb-grid--1, .wb-grid--2, .wb-grid--3, .wb-grid--4 { grid-template-columns: 1fr; }
	.wb-cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wb-garden__list { grid-template-columns: 1fr; }
	.wb-topbar__tagline { display: none; }

	/* Wyróżniony wpis: tekst pod obrazkiem (czytelność na małym ekranie) */
	.wb-feature { background: transparent; box-shadow: none; overflow: visible; }
	.wb-feature__media a { border-radius: var(--wb-radius); overflow: hidden; display: block; }
	.wb-feature__media img,
	.wb-feature__media .wb-noimg { border-radius: var(--wb-radius); aspect-ratio: 16 / 11; }
	.wb-feature__body {
		position: static;
		padding: 16px 0 0;
		background: none;
		color: inherit;
	}
	.wb-feature__title, .wb-feature__title a { color: var(--wb-text); }
	.wb-feature__title a:hover { color: var(--wb-link); text-decoration: none; }
	.wb-feature__excerpt { color: var(--wb-text-soft); -webkit-line-clamp: 3; }
	.wb-feature__body .wb-kicker,
	.wb-feature__body .wb-kicker a { color: var(--wb-text); }
	.wb-feature__body .wb-kicker__leaf { color: var(--wb-accent); }
	.wb-feature__body .wb-meta { color: var(--wb-muted); }

	.wb-sideitem { grid-template-columns: minmax(0, 1fr) 96px; }
	.wb-sideitem__media img, .wb-sideitem__media .wb-noimg { width: 96px; }
	.wb-footer__nav ul { gap: 6px 22px; }
	.wb-postnav { grid-template-columns: 1fr; }
	.wb-postnav__next { text-align: left; }
	.wb-authorbox { flex-direction: column; }
	.wb-content h2 { font-size: 1.35rem; }
}

/* ==========================================================================
   17. Preferencje użytkownika i druk
   ========================================================================== */

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

@media print {
	.wb-topbar, .wb-catbar, .wb-header__tools, .wb-search-overlay,
	.wb-latest, .wb-related, .wb-postnav, .wb-footer__nav, .wb-crumbs { display: none !important; }
	body { color: #000; background: #fff; }
	.wb-single { display: block; }
	.wb-content a { text-decoration: underline; color: #000; }
}
