/*
Theme Name: Redakcja
Description: Układ serwisu informacyjnego (strona główna, wpisy, działy, katalog firm) w trzech wariantach. Motyw potomny: kolory, teksty i autokonfiguracja pochodzą z motywu nadrzędnego.
Author: Redakcja
Template: motyw-z-verseo
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redakcja
*/

/* ==========================================================================
   Tokens. Colours come from the parent palette (inline :root block printed by
   verseo_color_css()); fonts default per variant in functions.php and can be
   replaced by the fonts block in Additional CSS (--font-serif = headings,
   --font-sans = body text).
   ========================================================================== */
:root {
	--color-primary: #1f4e79;
	--color-primary-dark: #163a5a;
	--color-primary-hover: #1a4468;
	--color-primary-light: #6f9fbb;
	--color-primary-subtle: #f2f6fa;
	--color-primary-muted: #a8c2d3;
	--color-accent: #b3261e;
	--color-accent-hover: #8f1e18;
	--color-accent-subtle: #fbeeed;
	--color-bg: #ffffff;
	--color-bg-alt: #f5f6f7;
	--color-border: #dcdfe3;
	--color-text: #1d2329;
	--color-text-muted: #5a636c;

	--ink: var(--color-text);
	--ink-soft: var(--color-text-muted);
	--rule: var(--color-border);
	--paper: var(--color-bg);
	--paper-alt: var(--color-bg-alt);
	--brand: var(--color-primary);
	--brand-dark: var(--color-primary-dark);
	--flag: var(--color-accent);

	--wrap: 1200px;
	--gap: 24px;
	--gap-s: 12px;
	--radius: 2px;
	--head-weight: 700;
	--head-tracking: -0.01em;
	--label-size: 0.72rem;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-serif);
	font-weight: var(--head-weight);
	letter-spacing: var(--head-tracking);
	line-height: 1.2;
	margin: 0 0 0.5em;
	color: var(--ink);
}
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }

.container {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: 16px;
}
@media (min-width: 768px) { .container { padding-inline: 24px; } }

.screen-reader-text,
.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 999; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip-link:focus { top: 8px; }

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

.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1 0 auto; }
.site-main { padding-block: 20px 48px; }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
	font-size: 0.8rem;
	color: var(--ink-soft);
	border-bottom: 1px solid var(--rule);
	background: var(--paper);
}
.topbar__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 34px;
}
.topbar__date { text-transform: none; white-space: nowrap; }
.topbar__date::first-letter { text-transform: uppercase; }
.topbar__region {
	padding-left: 16px;
	border-left: 1px solid var(--rule);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.topbar__links { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar__links ul { display: flex; gap: 14px; list-style: none; }
.topbar__links a:hover { color: var(--brand); }
@media (max-width: 640px) {
	.topbar__region, .topbar__links ul { display: none; }
}

.brandbar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-block: 14px;
}
.site-branding { min-width: 0; }
.site-branding__title { margin: 0; font-size: inherit; line-height: 1; letter-spacing: 0; }
.site-branding__name {
	display: block;
	font-family: var(--font-serif);
	font-weight: 800;
	font-size: clamp(1.6rem, 4.4vw, 2.6rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--ink);
}
.site-branding__tagline {
	display: block;
	margin-top: 6px;
	font-size: 0.82rem;
	color: var(--ink-soft);
}
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo-link img,
.custom-logo { display: block; width: auto; height: auto; max-height: 56px; max-width: min(440px, 70vw); }
/* logo_layout "mark": square sign + masthead set in the site's heading font */
.site-branding__lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.site-branding__lockup:hover { color: var(--ink); }
.site-branding__mark { display: block; width: auto; height: 48px; flex: none; }
@media (max-width: 640px) {
	.custom-logo-link img, .custom-logo { max-height: 42px; max-width: 62vw; }
	.site-branding__mark { height: 36px; }
	.site-branding__lockup { gap: 9px; }
}

.brandbar__tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid var(--rule);
	background: var(--paper);
	color: var(--ink);
	border-radius: var(--radius);
	cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { border-color: var(--ink); }
.nav-toggle { display: inline-flex; }
@media (min-width: 960px) { .nav-toggle { display: none; } }

.searchbar { display: none; border-bottom: 1px solid var(--rule); background: var(--paper-alt); }
.searchbar.is-open { display: block; }
.searchbar .container { padding-block: 12px; }

.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form label { flex: 1; }
.search-form .search-field {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	font: inherit;
}
.search-form .search-submit {
	height: 42px;
	padding: 0 18px;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}

/* Main navigation */
.mainnav { position: relative; }
.mainnav ul { list-style: none; }
.mainnav__list {
	display: none;
	flex-direction: column;
	padding-block: 6px;
}
.nav-open .mainnav__list { display: flex; }
.mainnav__list > li { position: relative; }
.mainnav a {
	display: block;
	padding: 10px 0;
	font-family: var(--font-sans);
	font-weight: 700;
	font-size: 0.9rem;
}
.mainnav .sub-menu { padding-left: 14px; display: none; }
.mainnav li.is-open > .sub-menu { display: block; }
.mainnav .sub-menu a { font-weight: 500; padding: 7px 0; }
.mainnav .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 6px; height: 6px;
	margin-left: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}

@media (min-width: 960px) {
	.mainnav__list {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		padding-block: 0;
	}
	.mainnav a { padding: 12px 14px; white-space: nowrap; }
	.mainnav__list > li:first-child > a { padding-left: 0; }
	.mainnav .sub-menu {
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 50;
		min-width: 220px;
		padding: 6px 0;
		background: var(--paper);
		border: 1px solid var(--rule);
		box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
	}
	.mainnav li:hover > .sub-menu,
	.mainnav li:focus-within > .sub-menu { display: block; }
	.mainnav .sub-menu a { padding: 8px 16px; color: var(--ink); }
	.mainnav .sub-menu a:hover { background: var(--paper-alt); color: var(--brand); }
}

/* "Na czasie" strip */
.hotline { border-bottom: 1px solid var(--rule); font-size: 0.85rem; }
.hotline__inner {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 40px;
	overflow: hidden;
}
.hotline__label {
	flex: none;
	font-weight: 800;
	font-size: var(--label-size);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--flag);
}
.hotline__items {
	display: flex;
	gap: 22px;
	list-style: none;
	min-width: 0;
	overflow: hidden;
}
.hotline__items li {
	flex: none;
	white-space: nowrap;
	max-width: 46ch;
	overflow: hidden;
	text-overflow: ellipsis;
}
.hotline__items li + li { padding-left: 22px; border-left: 1px solid var(--rule); }
@media (max-width: 760px) { .hotline__items li:not(:first-child) { display: none; } .hotline__items li { max-width: 100%; flex: 1; } }

/* ==========================================================================
   Story atoms
   ========================================================================== */
.story { position: relative; min-width: 0; }
.story__media {
	display: block;
	position: relative;
	overflow: hidden;
	background: var(--paper-alt);
	aspect-ratio: 16 / 9;
}
.story__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.story:hover .story__media img { transform: scale(1.02); }
.story__label {
	display: inline-block;
	margin-bottom: 6px;
	font-family: var(--font-sans);
	font-size: var(--label-size);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--brand);
}
a.story__label:hover { color: var(--ink); }
.story__title { margin: 0; font-size: 1.05rem; line-height: 1.25; }
.story__title a:hover { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.story__lead { margin: 8px 0 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }
.story__meta { margin-top: 6px; font-size: 0.78rem; color: var(--ink-soft); }
.story__body { padding-top: 10px; }

.story--lead .story__title { font-size: clamp(1.5rem, 3.2vw, 2.25rem); line-height: 1.15; }
.story--lead .story__lead { font-size: 1.02rem; }
.story--card .story__title { font-size: 1.05rem; }

.story--row { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: start; }
.story--row .story__body { padding-top: 0; }
.story--row .story__media { aspect-ratio: 4 / 3; }
.story--row.story--noimg { grid-template-columns: 1fr; }
@media (min-width: 640px) {
	.story--row { grid-template-columns: 240px 1fr; gap: 20px; }
	.story--row .story__title { font-size: 1.2rem; }
}

.story--line { padding-block: 10px; border-top: 1px solid var(--rule); }
.story--line:first-child { border-top: 0; padding-top: 0; }
.story--line .story__title { font-size: 0.98rem; font-weight: 600; font-family: var(--font-sans); letter-spacing: 0; }
.story--line .story__meta { margin-top: 3px; }

.story--mini { display: grid; grid-template-columns: 88px 1fr; gap: 12px; align-items: start; padding-block: 10px; border-top: 1px solid var(--rule); }
.story--mini:first-child { border-top: 0; padding-top: 0; }
.story--mini .story__media { aspect-ratio: 4 / 3; }
.story--mini .story__body { padding-top: 0; }
.story--mini .story__title { font-size: 0.92rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }
.story--mini.story--noimg { grid-template-columns: 1fr; }

.story--tile .story__media { aspect-ratio: 4 / 3; }
.story--tile .story__shade {
	position: absolute;
	inset: auto 0 0 0;
	padding: 40px 16px 14px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
	color: #fff;
}
.story--tile .story__title { color: #fff; font-size: 1.05rem; }
.story--tile .story__title a:hover { color: #fff; }
.story--tile .story__shade .story__label { color: #fff; background: var(--flag); padding: 2px 6px; }
.story--tile.story--noimg .story__media { background: var(--brand-dark); }

.story--num { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding-block: 12px; border-top: 1px solid var(--rule); counter-increment: storynum; }
.story--num:first-child { border-top: 0; padding-top: 0; }
.story--num::before {
	content: counter(storynum);
	font-family: var(--font-serif);
	font-size: 1.7rem;
	font-weight: 800;
	line-height: 1;
	color: var(--brand);
}
.story--num .story__title { font-size: 0.98rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0; }
.numlist { counter-reset: storynum; }

/* ==========================================================================
   Section heads and blocks
   ========================================================================== */
.block { margin-top: 40px; }
.block-head {
	display: flex;
	align-items: baseline;
	gap: 14px;
	margin-bottom: 18px;
	border-bottom: 2px solid var(--ink);
	padding-bottom: 8px;
}
.block-head__title {
	margin: 0;
	font-size: 1.35rem;
}
.block-head__more {
	margin-left: auto;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--brand);
	white-space: nowrap;
}
.block-head__more::after { content: " \2192"; }

.box { border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 32px; }
.box__title {
	margin: 0 0 12px;
	font-family: var(--font-sans);
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink);
}
.box--catalog { background: var(--paper-alt); border-top-color: var(--brand); padding: 16px; }
.box--catalog p { font-size: 0.9rem; color: var(--ink-soft); }
.box--catalog .btn { margin-top: 4px; }

.btn {
	display: inline-block;
	padding: 9px 16px;
	border: 1px solid var(--ink);
	background: var(--ink);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	border-radius: var(--radius);
}
.btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); }

/* Layout grids */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 720px) {
	.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
	.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
}

.with-aside { display: grid; grid-template-columns: 1fr; gap: 40px; }
@media (min-width: 960px) {
	.with-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
}

.stack > * + * { margin-top: 22px; }
.list-rows > .story--row + .story--row { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule); }

/* ==========================================================================
   Front page: shared pieces
   ========================================================================== */
.front-top { display: grid; grid-template-columns: 1fr; gap: 28px; }
.latest-col .box { margin-bottom: 0; }
.latest-col__more { display: inline-block; margin-top: 12px; font-size: 0.82rem; font-weight: 700; color: var(--brand); }

.section-trio { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 720px) {
	.section-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.section-trio__list { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.section-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
	.section-trio__list { grid-column: auto; }
}

.section-split { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 840px) {
	.section-split { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; }
}

/* ==========================================================================
   Archive / listing pages
   ========================================================================== */
.page-head { margin-bottom: 26px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.page-head__kicker {
	display: block;
	margin-bottom: 6px;
	font-size: var(--label-size);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--brand);
}
.page-head__title { margin: 0; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.page-head__desc { margin: 10px 0 0; max-width: 70ch; color: var(--ink-soft); }
.page-head__desc p:last-child { margin-bottom: 0; }

.archive-lead { margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid var(--rule); }
@media (min-width: 840px) {
	.archive-lead .story--lead { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px; align-items: center; }
	.archive-lead .story--lead .story__body { padding-top: 0; }
	.listing .archive-lead .story--lead .story__title { font-size: 1.8rem; }
}

/* Phones: secondary cards become compact rows so the front page is not a
   column of full-width photos. */
@media (max-width: 719px) {
	.front-second .story--card,
	.section-trio .story--card + .story--card,
	.cols-ruled .story--card + .story--card,
	.grid--4 .story--card {
		display: grid;
		grid-template-columns: 112px 1fr;
		gap: 12px;
		align-items: start;
	}
	.front-second .story--card .story__media,
	.section-trio .story--card + .story--card .story__media,
	.cols-ruled .story--card + .story--card .story__media,
	.grid--4 .story--card .story__media { aspect-ratio: 4 / 3; }
	.front-second .story--card .story__body,
	.section-trio .story--card + .story--card .story__body,
	.cols-ruled .story--card + .story--card .story__body,
	.grid--4 .story--card .story__body { padding-top: 0; }
	.front-second .story--card .story__lead,
	.section-trio .story--card + .story--card .story__lead,
	.cols-ruled .story--card + .story--card .story__lead { display: none; }
	.grid--4 { grid-template-columns: 1fr; }
	.story--card.story--noimg { grid-template-columns: 1fr; }
}

.pagination,
.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 36px;
}
.pagination a,
.pagination span,
.nav-links a,
.nav-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	font-size: 0.9rem;
	font-weight: 600;
}
.pagination .current,
.nav-links .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination a:hover,
.nav-links a:hover { border-color: var(--ink); color: var(--ink); }

.empty-note { padding: 28px; background: var(--paper-alt); color: var(--ink-soft); }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 14px;
	font-size: 0.8rem;
	color: var(--ink-soft);
}
.crumbs a:hover { color: var(--brand); text-decoration: underline; }
.crumbs__sep { color: var(--rule); }
.crumbs__current { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }

/* ==========================================================================
   Single article
   ========================================================================== */
.article-head { margin-bottom: 20px; }
.article-head .story__label { margin-bottom: 10px; }
.article-title {
	margin: 0;
	font-size: clamp(1.75rem, 4.2vw, 2.7rem);
	line-height: 1.12;
	letter-spacing: -0.02em;
}
.article-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 16px;
	margin-top: 16px;
	padding-block: 10px;
	border-block: 1px solid var(--rule);
	font-size: 0.85rem;
	color: var(--ink-soft);
}
.article-meta__author { font-weight: 700; color: var(--ink); }
.article-meta__share { margin-left: auto; display: flex; gap: 6px; }
.article-meta__share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	color: var(--ink);
}
.article-meta__share a:hover { border-color: var(--ink); color: var(--ink); }
.article-meta__share svg { width: 15px; height: 15px; }

.article-figure { margin: 22px 0 26px; }
.article-figure img { width: 100%; height: auto; }
.article-figure figcaption { margin-top: 6px; font-size: 0.78rem; color: var(--ink-soft); }

.entry-content {
	font-size: 1.06rem;
	line-height: 1.75;
	overflow-wrap: break-word;
}
.entry-content > * { max-width: 72ch; }
.entry-content > .alignwide,
.entry-content > .alignfull,
.entry-content > figure,
.entry-content > .wp-block-image,
.entry-content > table,
.entry-content > .wp-block-table { max-width: 100%; }
.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote,
.entry-content figure,
.entry-content table { margin: 0 0 1.25em; }
.entry-content h2 { font-size: 1.5rem; margin: 1.6em 0 0.6em; }
.entry-content h3 { font-size: 1.22rem; margin: 1.4em 0 0.5em; }
.entry-content h4 { font-size: 1.05rem; margin: 1.2em 0 0.5em; }
.entry-content a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--brand-dark); }
.entry-content ul,
.entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.35em; }
.entry-content li::marker { color: var(--brand); }
.entry-content blockquote {
	padding: 4px 0 4px 18px;
	border-left: 3px solid var(--brand);
	font-family: var(--font-serif);
	font-size: 1.15rem;
	color: var(--ink);
}
.entry-content img { height: auto; }
.entry-content figcaption { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: 0.92rem; display: block; overflow-x: auto; }
.entry-content th,
.entry-content td { padding: 8px 10px; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.entry-content th { background: var(--paper-alt); }
.entry-content hr { border: 0; border-top: 1px solid var(--rule); margin: 2em 0; }
.entry-content .wp-block-button__link { background: var(--ink); color: #fff; text-decoration: none; border-radius: var(--radius); }

.alsoread {
	margin: 1.6em 0;
	padding: 12px 0 12px 16px;
	border-left: 4px solid var(--flag);
	background: transparent;
	font-size: 0.95rem;
	line-height: 1.45;
}
.alsoread__label {
	display: block;
	margin-bottom: 3px;
	font-size: var(--label-size);
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--flag);
}
.entry-content .alsoread a { color: var(--ink); font-weight: 700; text-decoration: none; font-family: var(--font-serif); font-size: 1.05rem; }
.entry-content .alsoread a:hover { color: var(--brand); text-decoration: underline; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; font-size: 0.82rem; }
.article-tags span { font-weight: 700; }
.article-tags a { padding: 3px 9px; border: 1px solid var(--rule); border-radius: var(--radius); }
.article-tags a:hover { border-color: var(--ink); color: var(--ink); }

.byline-box {
	display: flex;
	gap: 14px;
	margin-top: 30px;
	padding: 16px 0;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule);
	font-size: 0.9rem;
}
.byline-box img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.byline-box img.byline-box__sign { border-radius: 12px; }
.byline-box__name { font-weight: 800; }
.byline-box__bio { margin: 2px 0 0; color: var(--ink-soft); }

.related { margin-top: 36px; }

/* Comments (markup from the parent's comments.php and core) */
.comments-section { margin-top: 36px; }
.comments-title,
.comment-reply-title { font-size: 1.2rem; }
.comment-list { list-style: none; }
.comment-list .comment { padding: 14px 0; border-top: 1px solid var(--rule); }
.comment-list .children { list-style: none; padding-left: 22px; }
.comment-author { font-weight: 700; }
.comment-metadata { font-size: 0.78rem; color: var(--ink-soft); }
.comment-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	font: inherit;
	background: #fff;
}
.comment-form .submit {
	padding: 10px 18px;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

/* Static pages */
.page-narrow { max-width: 800px; }
.page-narrow .entry-content > * { max-width: 100%; }

/* ==========================================================================
   Sidebar
   ========================================================================== */
.aside { font-size: 0.92rem; }
.aside .widget { margin-bottom: 32px; }
.aside .widget__title,
.aside .widget-title,
.aside .widget h2,
.aside .wp-block-heading {
	margin: 0 0 12px;
	padding-top: 12px;
	border-top: 3px solid var(--ink);
	font-family: var(--font-sans);
	font-size: 0.8rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.aside ul { list-style: none; }
.aside li { padding: 8px 0; border-top: 1px solid var(--rule); }
.aside li:first-child { border-top: 0; padding-top: 0; }
.aside .wp-block-latest-posts__post-date,
.aside .post-date { display: block; font-size: 0.76rem; color: var(--ink-soft); }
.aside .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.aside .wp-block-search__input {
	flex: 1;
	height: 40px;
	padding: 0 10px;
	border: 1px solid var(--rule);
	border-radius: var(--radius);
	font: inherit;
}
.aside .wp-block-search__button {
	height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: var(--radius);
	background: var(--ink);
	color: #fff;
	font-weight: 700;
}
.aside .wp-block-search__label { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	margin-top: 48px;
	background: var(--ink);
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9rem;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	padding-block: 40px 28px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; } }
.footer-about__name {
	display: block;
	margin-bottom: 10px;
	font-family: var(--font-serif);
	font-size: 1.5rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.01em;
}
.footer-about p { max-width: 48ch; }
.footer-col__title {
	margin: 0 0 12px;
	font-family: var(--font-sans);
	font-size: 0.76rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255, 255, 255, 0.6);
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 4px 0; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	padding-block: 16px 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.6);
}
.footer-bottom__links { margin-left: auto; display: flex; gap: 16px; }

/* ==========================================================================
   404 / search
   ========================================================================== */
.notfound { padding-block: 20px 10px; }
.notfound__code { font-family: var(--font-serif); font-size: 4rem; font-weight: 800; line-height: 1; color: var(--brand); }

/* ==========================================================================
   Business directory plugin (.wiz-*): follow the site palette
   ========================================================================== */
body {
	--wiz-akcent: var(--color-primary);
	--wiz-akcent-cien: var(--color-primary-subtle);
	--wiz-tekst-2: var(--color-text-muted);
	--wiz-tlo: var(--color-bg-alt);
	--wiz-tlo-2: var(--color-primary-subtle);
	--wiz-ramka: var(--color-border);
	--wiz-radius: 3px;
	--wiz-radius-m: 2px;
}
.wiz-main { padding-top: 24px; }
.wiz-main h1 { font-family: var(--font-serif); }

/* ==========================================================================
   VARIANT: dziennik — centred masthead, solid brand nav bar, serif headlines
   ========================================================================== */
.portal--dziennik .brandbar { padding-block: 22px 18px; }
@media (min-width: 960px) {
	.portal--dziennik .brandbar { justify-content: center; text-align: center; position: relative; }
	.portal--dziennik .brandbar__tools { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); }
	.portal--dziennik .custom-logo-link img { margin-inline: auto; max-height: 72px; }
	.portal--dziennik .site-branding__mark { height: 60px; }
}
.portal--dziennik .mainnav { background: var(--brand); color: #fff; }
.portal--dziennik .mainnav a { color: #fff; }
.portal--dziennik .mainnav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.portal--dziennik .mainnav .sub-menu a { color: var(--ink); }
.portal--dziennik .mainnav .sub-menu a:hover { text-decoration: none; }
@media (min-width: 960px) {
	.portal--dziennik .mainnav__list { justify-content: center; }
	.portal--dziennik .mainnav__list > li:first-child > a { padding-left: 14px; }
	.portal--dziennik .mainnav a { text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
}
.portal--dziennik .front-top { grid-template-columns: 1fr; }
@media (min-width: 960px) {
	.portal--dziennik .front-top { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 36px; }
	.portal--dziennik .latest-col { border-left: 1px solid var(--rule); padding-left: 28px; }
}
.portal--dziennik .front-second { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rule); }
.portal--dziennik .block-head { border-bottom-width: 1px; border-top: 3px solid var(--brand); border-bottom-color: var(--rule); padding-top: 10px; }
.portal--dziennik .story--lead .story__title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }

/* ==========================================================================
   VARIANT: serwis — compact header, white nav with brand underline, photo
   mosaic on the front, sans headlines
   ========================================================================== */
.portal--serwis { --head-weight: 700; --head-tracking: -0.005em; }
.portal--serwis .topbar { background: var(--brand-dark); color: rgba(255, 255, 255, 0.85); border-bottom: 0; }
.portal--serwis .topbar a { color: #fff; }
.portal--serwis .topbar__region { border-left-color: rgba(255, 255, 255, 0.3); }
.portal--serwis .site-branding__name { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
.portal--serwis .mainnav { border-top: 1px solid var(--rule); border-bottom: 3px solid var(--brand); }
.portal--serwis .mainnav a { color: var(--ink); }
.portal--serwis .mainnav__list > li > a:hover { color: var(--brand); }
.portal--serwis .hotline { background: var(--paper-alt); }
.portal--serwis .story__label { color: var(--flag); }
.portal--serwis .block-head { border-bottom: 3px solid var(--brand); }
.portal--serwis .block-head__title { font-family: var(--font-sans); font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.03em; }
.portal--serwis .mosaic { display: grid; grid-template-columns: 1fr; gap: 4px; }
.portal--serwis .mosaic .story--tile .story__media { aspect-ratio: 16 / 10; }
@media (min-width: 720px) {
	.portal--serwis .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.portal--serwis .mosaic__main { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.portal--serwis .mosaic { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); }
	.portal--serwis .mosaic__main { grid-column: 1; grid-row: 1 / 3; }
	.portal--serwis .mosaic__main .story__media { aspect-ratio: auto; height: 100%; min-height: 420px; }
	.portal--serwis .mosaic__main .story__title { font-size: 1.9rem; }
	.portal--serwis .mosaic .story--tile:not(.mosaic__main) .story__media { aspect-ratio: auto; height: 100%; min-height: 206px; }
}
.portal--serwis .mosaic + .with-aside { margin-top: 36px; }
.portal--serwis .feed-head { margin-top: 0; }

/* ==========================================================================
   VARIANT: tygodnik — left masthead with rules, big headline-first lead,
   column rules between stories
   ========================================================================== */
.portal--tygodnik { --label-size: 0.7rem; }
.portal--tygodnik .topbar { background: var(--brand); color: rgba(255, 255, 255, 0.88); border-bottom: 0; }
.portal--tygodnik .topbar a { color: #fff; }
.portal--tygodnik .topbar__region { border-left-color: rgba(255, 255, 255, 0.35); }
.portal--tygodnik .brandbar { padding-block: 20px 16px; border-bottom: 1px solid var(--ink); }
.portal--tygodnik .site-branding__name { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; }
@media (min-width: 960px) {
	.portal--tygodnik .custom-logo-link img, .portal--tygodnik .custom-logo { max-height: 60px; }
	.portal--tygodnik .site-branding__mark { height: 56px; }
}
.portal--tygodnik .mainnav { border-bottom: 1px solid var(--rule); }
.portal--tygodnik .mainnav a { color: var(--ink); font-weight: 600; }
@media (min-width: 960px) {
	.portal--tygodnik .mainnav a { font-size: 0.86rem; }
	.portal--tygodnik .mainnav__list > li + li > a { border-left: 1px solid var(--rule); }
}
.portal--tygodnik .story__label { color: var(--flag); }
.portal--tygodnik .story--lead .story__title { font-size: clamp(1.8rem, 4.4vw, 3.1rem); line-height: 1.07; letter-spacing: -0.02em; }
.portal--tygodnik .lead-wide .story__body { padding-top: 16px; }
.portal--tygodnik .lead-wide .story__media { aspect-ratio: 3 / 2; }
@media (min-width: 900px) {
	.portal--tygodnik .lead-wide .story--lead { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 36px; align-items: end; }
	.portal--tygodnik .lead-wide .story__body { padding: 0 0 6px; border-bottom: 4px solid var(--ink); padding-bottom: 22px; }
	.portal--tygodnik .lead-wide .story__lead { font-size: 1.08rem; }
}
.portal--tygodnik .cols-ruled { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--ink); }
@media (min-width: 840px) {
	.portal--tygodnik .cols-ruled { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
	.portal--tygodnik .cols-ruled > .story { padding-inline: 22px; border-left: 1px solid var(--rule); }
	.portal--tygodnik .cols-ruled > .story:first-child { padding-left: 0; border-left: 0; }
	.portal--tygodnik .cols-ruled > .story:last-child { padding-right: 0; }
}
.portal--tygodnik .block-head { border-bottom: 1px solid var(--ink); }
.portal--tygodnik .block-head__title { font-size: 1.6rem; font-weight: 700; }
.portal--tygodnik .box { border-top-width: 1px; }
.portal--tygodnik .site-footer { background: var(--brand-dark); }

/* ==========================================================================
   WooCommerce (stores keep their shop; portal colours and type)
   ========================================================================== */
.shop-main .woocommerce-breadcrumb { margin-bottom: 14px; font-size: 0.8rem; color: var(--ink-soft); }
.shop-main .woocommerce-breadcrumb a { color: var(--ink-soft); }
.shop-main .woocommerce-products-header__title,
.shop-main .product_title { font-family: var(--font-serif); font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 14px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-serif); font-size: 1rem; line-height: 1.3; color: var(--ink); }
.woocommerce ul.products li.product a img { aspect-ratio: 1 / 1; object-fit: cover; }
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--brand); font-weight: 700; }
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt { background: var(--ink); color: #fff; border-radius: var(--radius); font-weight: 700; }
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover { background: var(--brand); color: #fff; }
.woocommerce span.onsale { background: var(--flag); border-radius: var(--radius); min-height: 0; min-width: 0; padding: 4px 8px; line-height: 1.2; }
.woocommerce .woocommerce-ordering select,
.woocommerce .quantity .qty { border: 1px solid var(--rule); border-radius: var(--radius); padding: 6px 8px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 3px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 12px; }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: var(--paper); }
