/*
 * Stolarnia — arkusz główny.
 *
 * ZASADA: w tym pliku nie ma ani jednej wartości koloru, fontu ani skali.
 * Wszystko pochodzi ze zmiennych generowanych z config/design.php.
 * Chcesz zmienić wygląd — edytujesz konfigurację, nie ten plik.
 *
 * Spis:
 *   1.  Reset i podstawy
 *   2.  Kontenery i układ
 *   3.  Typografia i treść (st-prose)
 *   4.  Nagłówek, menu, pasek działów
 *   5.  Okruszki
 *   6.  Hero
 *   7.  Karty i siatki
 *   8.  Nagłówki sekcji i stron
 *   9.  Dział: filar, poddziały
 *   10. Artykuł: spis treści, meta, tagi, autor, sąsiedzi
 *   11. Panel boczny i widgety
 *   12. Formularze, przyciski, paginacja
 *   13. Stopka i elementy pływające
 *   14. Dostępność, druk, redukcja ruchu
 */

/* ------------------------------------------------------------------ *
 * 1. Reset i podstawy
 * ------------------------------------------------------------------ */

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

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

body {
	margin: 0;
	background: var(--st-bg);
	color: var(--st-text);
	font-family: var(--st-font-body);
	font-size: var(--st-fs-base);
	font-weight: var(--st-fw-body);
	line-height: var(--st-lh-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }

a { color: var(--st-accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--st-accent-dk); }

:focus-visible {
	outline: 2px solid var(--st-accent);
	outline-offset: 3px;
	border-radius: var(--st-radius-sm);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--st-font-heading);
	font-weight: var(--st-fw-heading);
	line-height: var(--st-lh-heading);
	letter-spacing: var(--st-ls-heading);
	color: var(--st-text);
	margin: 0;
	text-wrap: balance;
}

p, ul, ol, dl, figure, pre, table, blockquote { margin: 0; }

::selection { background: var(--st-accent); color: var(--st-accent-fg); }

/* ------------------------------------------------------------------ *
 * 2. Kontenery i układ
 * ------------------------------------------------------------------ */

.st-container {
	width: 100%;
	max-width: var(--st-w-full);
	margin-inline: auto;
	padding-inline: var(--st-w-gutter);
}

.st-main { display: block; padding-block: var(--st-space-lg) var(--st-space-2xl); }

.st-layout {
	display: grid;
	gap: var(--st-space-xl);
	align-items: start;
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 62rem) {
	/* Kolumna glowna ma szerokosc MIARY TEKSTU, nie reszty ekranu. Wczesniej tekst konczyl
	   sie na 42rem w kolumnie o szerokosci 62rem, wiec miedzy nim a panelem bocznym zostawal
	   pas kilkuset pikseli pustki - i to on sprawial, ze wpis wygladal na rozstrzelony,
	   a panel na doklejony z boku. Calosc centrujemy, zamiast rozpychac do krawedzi. */
	.st-sidebar-right .st-layout { grid-template-columns: minmax(0, 1fr) 19rem; }
	.st-sidebar-left .st-layout  { grid-template-columns: 19rem minmax(0, 1fr); }
	.st-sidebar-left .st-layout__aside { order: -1; }

	/* Waska miara obowiazuje tam, gdzie sie CZYTA - na wpisie i na stronie. Lista
	   artykulow scisnieta do 42rem zwijala sie w slupek i marnowala pol ekranu;
	   nakladanie miary tekstu na spis tresci to pomylenie dwoch roznych zadan. */
	.single.st-sidebar-right .st-layout,
	.page.st-sidebar-right .st-layout { grid-template-columns: minmax(0, var(--st-w-content)) 19rem; }
	.single.st-sidebar-left .st-layout,
	.page.st-sidebar-left .st-layout { grid-template-columns: 19rem minmax(0, var(--st-w-content)); }
	.single .st-layout,
	.page .st-layout { justify-content: center; }
}

/* Na waskim ekranie panel idzie NAD artykul, bo niesie spis tresci - pod artykulem
   spis nikomu juz nie sluzy. Na szerokim wraca na swoje miejsce z powyzszej reguly. */
@media (max-width: 61.999rem) {
	.single .st-layout__aside { order: -1; }
	.single .st-widget--pillar { display: none; }
}

.st-layout__main { min-width: 0; }

.st-layout__aside { min-width: 0; }

.st-aside-inner {
	position: sticky;
	top: 5.5rem;
	display: grid;
	gap: var(--st-space-lg);
}

/* ------------------------------------------------------------------ *
 * 3. Typografia i treść
 * ------------------------------------------------------------------ */

.st-prose {
	max-width: var(--st-w-content);
	font-size: var(--st-fs-md);
}

.st-prose > * + * { margin-top: var(--st-space-md); }

.st-prose h2 {
	font-size: var(--st-fs-2xl);
	margin-top: var(--st-space-xl);
	padding-top: var(--st-space-xs);
}

.st-prose h3 {
	font-size: var(--st-fs-xl);
	margin-top: var(--st-space-lg);
}

.st-prose h4 { font-size: var(--st-fs-lg); margin-top: var(--st-space-lg); }

.st-prose ul, .st-prose ol { padding-left: 1.35em; }
.st-prose li + li { margin-top: calc(var(--st-space-xs) * 1.4); }
.st-prose li::marker { color: var(--st-accent); }

.st-prose blockquote {
	border-left: 3px solid var(--st-accent);
	padding: var(--st-space-xs) 0 var(--st-space-xs) var(--st-space-md);
	font-size: var(--st-fs-lg);
	color: var(--st-muted);
	font-style: italic;
}

.st-prose code, .st-prose kbd, .st-prose samp {
	font-family: var(--st-font-mono);
	font-size: 0.9em;
	background: var(--st-bg-alt);
	border: var(--st-border) solid var(--st-border);
	border-radius: var(--st-radius-sm);
	padding: 0.12em 0.36em;
}

.st-prose pre {
	background: var(--st-bg-alt);
	border: var(--st-border) solid var(--st-border);
	border-radius: var(--st-radius);
	padding: var(--st-space-md);
	overflow-x: auto;
	font-family: var(--st-font-mono);
	font-size: var(--st-fs-sm);
	line-height: 1.6;
}

.st-prose pre code { background: none; border: 0; padding: 0; }

.st-prose img, .st-prose figure { border-radius: var(--st-radius); }

.st-prose figure { margin-block: var(--st-space-lg); }

.st-prose figcaption {
	font-size: var(--st-fs-sm);
	color: var(--st-muted);
	margin-top: var(--st-space-sm);
	text-align: center;
}

.st-prose table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--st-fs-sm);
}

.st-prose th, .st-prose td {
	text-align: left;
	padding: 0.7em 0.9em;
	border-bottom: var(--st-border) solid var(--st-border);
}

.st-prose thead th {
	background: var(--st-bg-alt);
	font-family: var(--st-font-heading);
}

.st-prose hr {
	border: 0;
	border-top: var(--st-border) solid var(--st-border);
	margin-block: var(--st-space-xl);
}

.st-prose .alignwide { max-width: var(--st-w-wide); margin-inline: auto; }
.st-prose .alignfull { max-width: none; }
.st-prose .alignleft  { float: left;  margin: 0 var(--st-space-md) var(--st-space-md) 0; }
.st-prose .alignright { float: right; margin: 0 0 var(--st-space-md) var(--st-space-md); }
.st-prose .aligncenter { margin-inline: auto; }

.st-autolink {
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-color: color-mix(in srgb, var(--st-accent) 55%, transparent);
}

/* ------------------------------------------------------------------ *
 * 4. Nagłówek, menu, pasek działów
 * ------------------------------------------------------------------ */

.st-header {
	background: color-mix(in srgb, var(--st-bg) 88%, transparent);
	backdrop-filter: saturate(1.6) blur(10px);
	border-bottom: var(--st-border) solid var(--st-border);
	z-index: 40;
}

.st-header--sticky { position: sticky; top: 0; }

.st-header__inner {
	display: flex;
	align-items: center;
	gap: var(--st-space-md);
	min-height: 4.25rem;
}

/* Winieta to para: znak i nazwa obok siebie. Sam znak w pustym pasie czyta sie jak
   placeholder, a znak generowany dla zaplecza jest abstrakcyjny i nie mowi, gdzie jestes. */
.st-brand {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 0.6rem;
	margin-right: auto;
}

.st-brand__text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }

.st-brand__mark {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	padding: 0.15rem;
	border-radius: var(--st-radius-sm);
	background: var(--st-surface);
	border: 1px solid var(--st-border);
	overflow: hidden;
}

/* Znak z generatora ma wypalone jasne tlo - kafelek robi z tego celowa plakietke
   zamiast bialego kwadratu przyklejonego do kremowego naglowka. */
.st-brand__mark-img { width: 100%; height: 100%; object-fit: contain; display: block; }

.st-brand__name {
	margin: 0;
	font-family: var(--st-font-heading);
	font-size: var(--st-fs-lg);
	font-weight: var(--st-fw-heading);
	letter-spacing: var(--st-ls-heading);
	line-height: 1.1;
}

.st-brand__name a { color: var(--st-text); text-decoration: none; }
.st-brand__name a:hover { color: var(--st-accent); }

.st-brand__tagline {
	margin: 0.15rem 0 0;
	font-size: var(--st-fs-xs);
	color: var(--st-muted);
	line-height: 1.3;
}

.st-brand .custom-logo { max-height: 2.75rem; width: auto; }

.st-header-centered .st-brand { justify-content: center; }

.st-nav { display: none; }

@media (min-width: 62rem) {
	.st-nav { display: block; }
}

.st-menu {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.st-menu__item { position: relative; }

.st-menu__link {
	display: inline-block;
	padding: 0.5rem 0.7rem;
	color: var(--st-text);
	font-size: var(--st-fs-sm);
	font-weight: 500;
	text-decoration: none;
	border-radius: var(--st-radius-sm);
	white-space: nowrap;
}

.st-menu__link:hover { background: var(--st-bg-alt); color: var(--st-accent); }

.st-menu__link[aria-current="page"] {
	color: var(--st-accent);
	background: var(--st-accent-sf);
}

.st-menu__toggle {
	position: absolute;
	inset-inline-end: -0.1rem;
	inset-block-start: 50%;
	translate: 0 -50%;
	background: none;
	border: 0;
	padding: 0.35rem;
	cursor: pointer;
	color: var(--st-muted);
	line-height: 0;
	display: none;
}

.st-menu__chevron {
	display: inline-block;
	width: 0.42rem;
	height: 0.42rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	rotate: 45deg;
	translate: 0 -0.1rem;
}

.st-menu__sub {
	position: absolute;
	top: calc(100% + 0.4rem);
	left: 0;
	min-width: 13rem;
	list-style: none;
	margin: 0;
	padding: 0.4rem;
	background: var(--st-surface);
	border: var(--st-border) solid var(--st-border);
	border-radius: var(--st-radius);
	box-shadow: var(--st-shadow-lg);
	opacity: 0;
	visibility: hidden;
	translate: 0 -0.3rem;
	transition: opacity .16s ease, translate .16s ease, visibility .16s;
	z-index: 30;
}

.st-menu__item--parent:hover > .st-menu__sub,
.st-menu__item--parent:focus-within > .st-menu__sub {
	opacity: 1;
	visibility: visible;
	translate: 0 0;
}

.st-menu__sub .st-menu__link { display: block; white-space: normal; }

.st-header__actions { display: flex; align-items: center; gap: 0.35rem; }

.st-icon-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	background: none;
	border: var(--st-border) solid transparent;
	border-radius: var(--st-radius-sm);
	padding: 0.45rem 0.6rem;
	color: var(--st-muted);
	cursor: pointer;
	font: inherit;
	font-size: var(--st-fs-sm);
	line-height: 1;
}

.st-icon-btn:hover { color: var(--st-accent); background: var(--st-bg-alt); }

.st-icon-btn__label { display: none; }

@media (min-width: 48rem) {
	.st-icon-btn__label { display: inline; }
}

.st-icon { flex: none; }

.st-scheme-toggle .st-icon--moon { display: none; }

@media (prefers-color-scheme: dark) {
	.st-scheme-toggle .st-icon--sun { display: none; }
	.st-scheme-toggle .st-icon--moon { display: block; }
}

html[data-st-scheme="dark"] .st-scheme-toggle .st-icon--sun { display: none; }
html[data-st-scheme="dark"] .st-scheme-toggle .st-icon--moon { display: block; }
html[data-st-scheme="light"] .st-scheme-toggle .st-icon--sun { display: block; }
html[data-st-scheme="light"] .st-scheme-toggle .st-icon--moon { display: none; }

.st-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.4rem;
	height: 2.4rem;
	background: none;
	border: var(--st-border) solid var(--st-border);
	border-radius: var(--st-radius-sm);
	cursor: pointer;
	color: var(--st-text);
}

@media (min-width: 62rem) { .st-burger { display: none; } }

.st-burger__box { position: relative; width: 1.05rem; height: 0.7rem; display: block; }

.st-burger__bar,
.st-burger__bar::before,
.st-burger__bar::after {
	position: absolute;
	left: 0;
	width: 100%;
	height: 1.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}

.st-burger__bar { top: 50%; translate: 0 -50%; }
.st-burger__bar::before { content: ""; top: -0.35rem; }
.st-burger__bar::after  { content: ""; top:  0.35rem; }

.st-burger[aria-expanded="true"] .st-burger__bar { background: transparent; }
.st-burger[aria-expanded="true"] .st-burger__bar::before { top: 0; rotate: 45deg; }
.st-burger[aria-expanded="true"] .st-burger__bar::after  { top: 0; rotate: -45deg; }

.st-mobile-nav {
	border-top: var(--st-border) solid var(--st-border);
	background: var(--st-surface);
	padding-block: var(--st-space-md);
}

.st-mobile-nav .st-menu {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.st-mobile-nav .st-menu__link {
	display: block;
	padding: 0.65rem 0;
	font-size: var(--st-fs-md);
	border-bottom: var(--st-border) solid var(--st-border);
	border-radius: 0;
}

.st-mobile-nav .st-menu__sub {
	position: static;
	opacity: 1;
	visibility: visible;
	translate: 0;
	box-shadow: none;
	border: 0;
	padding: 0 0 0 var(--st-space-md);
	min-width: 0;
}

/* Warianty nagłówka. Zmieniają nie tylko wygląd, ale i kolejność elementów
   w DOM-ie — dwie instalacje z różnymi wariantami mają inny szkielet strony. */

.st-header-centered .st-header__inner {
	flex-direction: column;
	align-items: center;
	gap: var(--st-space-sm);
	padding-block: var(--st-space-md);
	position: relative;
}

.st-header-centered .st-brand { margin-right: 0; align-items: center; text-align: center; }
.st-header-centered .st-brand__text { align-items: center; }
.st-header-centered .st-brand__tagline { text-align: center; }
.st-header-centered .st-nav { order: 3; }
.st-header-centered .st-menu { justify-content: center; flex-wrap: wrap; }

@media (min-width: 62rem) {
	.st-header-centered .st-header__actions {
		position: absolute;
		right: var(--st-w-gutter);
		top: var(--st-space-md);
	}
}

@media (max-width: 61.99rem) {
	.st-header-centered .st-header__inner { flex-direction: row; }
	.st-header-centered .st-brand { align-items: flex-start; text-align: left; margin-right: auto; }
}

.st-header-split .st-header__inner { justify-content: space-between; }
.st-header-split .st-brand { order: 2; margin-inline: auto; align-items: center; text-align: center; }
.st-header-split .st-nav { order: 1; flex: 1 1 0; }
.st-header-split .st-header__actions { order: 3; flex: 1 1 0; justify-content: flex-end; }

@media (max-width: 61.99rem) {
	.st-header-split .st-brand { order: 1; margin-inline: 0 auto; text-align: left; align-items: flex-start; }
}

/* Stopka kompaktowa — jeden pas zamiast siatki kolumn. */
.st-footer--compact { padding-block: var(--st-space-lg) var(--st-space-md); }

.st-footer__compact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--st-space-md);
	padding-bottom: var(--st-space-md);
}

.st-footer__inline {
	display: flex;
	flex-wrap: wrap;
	gap: var(--st-space-md);
	list-style: none;
	margin: 0;
	padding: 0;
}

.st-footer__inline a { color: var(--st-text); text-decoration: none; }
.st-footer__inline a:hover { color: var(--st-accent); }

.st-search-panel {
	border-top: var(--st-border) solid var(--st-border);
	background: var(--st-bg-alt);
	padding-block: var(--st-space-md);
}

.st-silobar {
	border-bottom: var(--st-border) solid var(--st-border);
	background: var(--st-bg-alt);
	overflow-x: auto;
	scrollbar-width: none;
}

.st-silobar::-webkit-scrollbar { display: none; }

.st-silobar__list {
	display: flex;
	gap: var(--st-space-md);
	list-style: none;
	margin: 0;
	padding: 0.7rem 0;
	white-space: nowrap;
}

.st-silobar__list a {
	color: var(--st-muted);
	font-size: var(--st-fs-sm);
	text-decoration: none;
	font-weight: 500;
}

.st-silobar__list a:hover { color: var(--st-accent); }
.st-silobar__list .current-menu-item a { color: var(--st-accent); }

/* ------------------------------------------------------------------ *
 * 5. Okruszki
 * ------------------------------------------------------------------ */

.st-crumbs { margin-bottom: var(--st-space-md); }

.st-crumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: var(--st-fs-xs);
	color: var(--st-muted);
}

.st-crumbs__item + .st-crumbs__item::before {
	content: "/";
	margin-right: 0.5rem;
	color: var(--st-border);
}

.st-crumbs__item a { color: var(--st-muted); text-decoration: none; }
.st-crumbs__item a:hover { color: var(--st-accent); text-decoration: underline; }
.st-crumbs__item [aria-current] { color: var(--st-text); }

/* ------------------------------------------------------------------ *
 * 6. Hero
 * ------------------------------------------------------------------ */

/* Hero na tle pomocniczym z hairline'em na dole. Bez tego strona główna
   zaczyna się „od razu treścią" i wygląda jak lista, a nie jak serwis. */
.st-hero {
	padding-block: var(--st-space-xl);
	margin-bottom: var(--st-space-2xl);
	background: var(--st-bg-alt);
	border-bottom: var(--st-border) solid var(--st-border);
}

.st-main > .st-hero:first-child { margin-top: calc(var(--st-space-lg) * -1); }

.st-hero__inner { display: grid; gap: var(--st-space-lg); align-items: center; }

@media (min-width: 56rem) {
	.st-hero--editorial .st-hero__inner { grid-template-columns: 1.15fr 1fr; }
	.st-hero--editorial .st-hero__media { order: 2; }
}

.st-hero__media {
	display: block;
	border-radius: var(--st-radius-lg);
	overflow: hidden;
	box-shadow: var(--st-shadow-lg);
}
.st-hero__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.st-hero__cat {
	display: inline-block;
	font-size: var(--st-fs-xs);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--st-accent);
	background: var(--st-accent-sf);
	padding: 0.28rem 0.6rem;
	border-radius: 999px;
	text-decoration: none;
	margin-bottom: var(--st-space-sm);
}

.st-hero__title {
	font-size: var(--st-fs-4xl);
	margin-bottom: var(--st-space-sm);
	text-wrap: balance;
	max-width: 18ch;
}

.st-hero__title a { color: inherit; text-decoration: none; }
.st-hero__title a:hover { color: var(--st-accent); }

.st-hero__excerpt {
	color: var(--st-muted);
	font-size: var(--st-fs-lg);
	max-width: 40ch;
}

.st-hero__foot {
	display: flex;
	align-items: center;
	gap: var(--st-space-md);
	margin-top: var(--st-space-md);
	font-size: var(--st-fs-sm);
	color: var(--st-muted);
}

/* Wariant „panel" — hero na tle z akcentem. */
.st-hero--panel {
	background: var(--st-bg-alt);
	border-bottom: var(--st-border) solid var(--st-border);
}

@media (min-width: 56rem) {
	.st-hero--panel .st-hero__inner { grid-template-columns: 1fr 1fr; }
}

.st-hero--panel .st-hero__img { aspect-ratio: 4 / 3; }

/* Wariant „minimal" — sama typografia, bez obrazka. */
.st-hero--minimal { text-align: center; }
.st-hero--minimal .st-hero__excerpt { margin-inline: auto; }
.st-hero--minimal .st-hero__foot { justify-content: center; }

/* ------------------------------------------------------------------ *
 * 7. Karty i siatki
 * ------------------------------------------------------------------ */

/* Liczba kolumn jest jawna, nie „ile się zmieści" — inaczej sekcja z czterema
   wpisami rozjeżdża się względem sekcji z trzema i strona wygląda przypadkowo. */
.st-grid {
	display: grid;
	gap: var(--st-space-lg) var(--st-space-md);
	grid-template-columns: 1fr;
}

@media (min-width: 34rem) {
	.st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 62rem) {
	.st-cols-3 .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.st-cols-2 .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-cols-3 .st-layout__main .st-grid,
	.st-cols-2 .st-layout__main .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.st-no-sidebar .st-layout__main .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.st-card {
	display: flex;
	flex-direction: column;
	gap: var(--st-space-sm);
	min-width: 0;
}

.st-card__media {
	display: block;
	border-radius: var(--st-radius);
	overflow: hidden;
	background: var(--st-bg-alt);
}

.st-card__img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: scale .35s ease;
}

.st-card:hover .st-card__img { scale: 1.03; }

/* Płytka zastępcza dla wpisu bez obrazka.
   Serwis zasilany hurtem bywa bez grafik przez pierwsze tygodnie, a karta bez
   miniatury zostawia w rzędzie pustą przestrzeń — sąsiednie karty i tak wyrównują
   się do najwyższej. Płytka wypełnia to świadomie: tło z palety, wielki monogram
   działu i kąt gradientu wyliczony z identyfikatora wpisu, żeby dwie karty obok
   siebie nie były identyczne. Zero losowości — ten sam wpis ma zawsze to samo. */
.st-card__media--blank {
	aspect-ratio: 3 / 2;
	display: grid;
	place-items: center;
	background:
		linear-gradient(var(--st-blank-angle, 45deg),
			rgba(var(--st-accent-rgb), .14) 0%,
			rgba(var(--st-accent-rgb), .04) 55%,
			var(--st-bg-alt) 100%);
	border: 1px solid var(--st-border);
}

.st-card__monogram {
	font-family: var(--st-font-heading);
	font-size: clamp(2.6rem, 7vw, 4.2rem);
	line-height: 1;
	color: rgba(var(--st-accent-rgb), .28);
	user-select: none;
}

.st-card--horizontal .st-card__media--blank { aspect-ratio: 4 / 3; }

/* Cztery wzory wybierane identyfikatorem wpisu. Sama płytka z monogramem powtórzona
   jedenaście razy w dziale wygląda tak samo maszynowo jak jedno zdjęcie jedenaście razy —
   różnica jest tylko taka, że w innym kierunku. */
.st-card__media--wz1 {
	background-image:
		repeating-linear-gradient(45deg, rgba(var(--st-accent-rgb), .10) 0 2px, transparent 2px 11px),
		linear-gradient(var(--st-blank-angle, 45deg), rgba(var(--st-accent-rgb), .12), var(--st-bg-alt));
}

.st-card__media--wz2 {
	background-image:
		radial-gradient(circle, rgba(var(--st-accent-rgb), .16) 1.5px, transparent 1.6px),
		linear-gradient(var(--st-blank-angle, 45deg), rgba(var(--st-accent-rgb), .10), var(--st-bg-alt));
	background-size: 14px 14px, auto;
}

.st-card__media--wz3 {
	background-image:
		repeating-linear-gradient(0deg, rgba(var(--st-accent-rgb), .09) 0 1px, transparent 1px 16px),
		repeating-linear-gradient(90deg, rgba(var(--st-accent-rgb), .09) 0 1px, transparent 1px 16px),
		linear-gradient(var(--st-blank-angle, 45deg), rgba(var(--st-accent-rgb), .10), var(--st-bg-alt));
}

@media (prefers-reduced-motion: reduce) {
	.st-card__img { transition: none; }
}

/* ------------------------------------------------------------------
   UKŁAD PORTALOWY NA STRONIE GŁÓWNEJ
   Jeden artykuł prowadzący z obrazem, reszta jako zajawki. Siatka równych
   kart traktuje wszystko jednakowo, więc oko nie ma gdzie wejść i strona
   czyta się jak spis treści zamiast jak serwis.
   ------------------------------------------------------------------ */

.st-portal {
	display: grid;
	gap: var(--st-space-lg);
	grid-template-columns: 1fr;
	align-items: start;
}

@media (min-width: 60rem) {
	.st-portal { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
}

.st-lead { display: flex; flex-direction: column; gap: var(--st-space-sm); }

.st-lead__media {
	display: block;
	border-radius: var(--st-radius);
	overflow: hidden;
	background: var(--st-bg-alt);
}

.st-lead__img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: scale .35s ease;
}

.st-lead:hover .st-lead__img { scale: 1.02; }

.st-lead__cat {
	font-size: var(--st-fs-xs);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--st-accent);
	text-decoration: none;
}

.st-lead__title {
	font-family: var(--st-font-heading);
	font-size: clamp(1.5rem, 2.6vw, 2.1rem);
	line-height: var(--st-lh-heading);
	margin: 0;
}

.st-lead__title a { color: inherit; text-decoration: none; }
.st-lead__title a:hover { color: var(--st-accent); }
.st-lead__excerpt { margin: 0; color: var(--st-muted); }
.st-lead__foot { font-size: var(--st-fs-xs); color: var(--st-muted); }

/* Zajawki — sama treść, bez grafiki. Pięć obrazów w rzędzie to tapeta,
   a nie hierarchia; brak obrazu jest tu decyzją, nie brakiem. */
.st-zajawki {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.st-zajawka {
	padding: var(--st-space-sm) 0;
	border-top: 1px solid var(--st-border);
}

.st-zajawka:first-child { border-top: 0; padding-top: 0; }

.st-zajawka__title {
	display: block;
	font-family: var(--st-font-heading);
	font-size: var(--st-fs-md);
	line-height: var(--st-lh-heading);
	color: inherit;
	text-decoration: none;
}

.st-zajawka__title:hover { color: var(--st-accent); }

.st-zajawka__excerpt {
	margin: .25rem 0 .2rem;
	font-size: var(--st-fs-sm);
	color: var(--st-muted);
}

.st-zajawka__date { font-size: var(--st-fs-xs); color: var(--st-muted); }

/* ------------------------------------------------------------------
   TONY SEKCJI
   Sześć działów pod rząd w jednym kolorze to jedna długa szara kolumna.
   Naprzemienne pasma dają rytm i mówią oku, gdzie kończy się jeden dział.
   Kolory biorą się z palety instalacji — po rebrandingu zmieniają się same.
   ------------------------------------------------------------------ */

.st-silosection { padding-block: var(--st-space-xl); }

/* ------------------------------------------------------------------
   LISTA DZIAŁU W UKŁADZIE SERWISU INFORMACYJNEGO
   Karta bez zdjęcia zawsze wygląda na kartę, której czegoś brakuje — a przy
   jednym obrazie na dział brakuje go z definicji wszystkim poza pierwszym.
   Wiersz tekstowy niczego nie obiecuje i niczego mu nie brakuje.
   ------------------------------------------------------------------ */

.st-newslist { display: grid; gap: var(--st-space-lg); }

@media (min-width: 48rem) {
	.st-newslist { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
	.st-newsrows { grid-column: 1 / -1; }
}

.st-newslead { padding-top: var(--st-space-sm); border-top: 2px solid var(--st-text); }

.st-newslead__title {
	font-family: var(--st-font-heading);
	font-size: var(--st-fs-xl);
	line-height: var(--st-lh-heading);
	margin: 0 0 .4rem;
}

.st-newslead__title a { color: inherit; text-decoration: none; }
.st-newslead__title a:hover { color: var(--st-accent); }
.st-newslead__excerpt { margin: 0 0 .5rem; color: var(--st-muted); }

.st-newslead__foot {
	display: flex;
	gap: .4rem;
	font-size: var(--st-fs-xs);
	color: var(--st-muted);
}

.st-newsrows {
	display: grid;
	gap: 0 var(--st-space-xl);
	border-top: 1px solid var(--st-border);
}

@media (min-width: 48rem) {
	.st-newsrows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.st-newsrow {
	display: grid;
	grid-template-columns: 3.4rem minmax(0, 1fr);
	gap: var(--st-space-sm);
	padding: var(--st-space-sm) 0;
	border-bottom: 1px solid var(--st-border);
}

.st-newsrow__date {
	font-size: var(--st-fs-xs);
	color: var(--st-accent);
	font-variant-numeric: tabular-nums;
	padding-top: .18rem;
	white-space: nowrap;
}

.st-newsrow__title {
	font-family: var(--st-font-heading);
	font-size: var(--st-fs-md);
	line-height: var(--st-lh-heading);
	margin: 0;
}

.st-newsrow__title a { color: inherit; text-decoration: none; }
.st-newsrow__title a:hover { color: var(--st-accent); }

.st-newsrow__excerpt {
	margin: .15rem 0 0;
	font-size: var(--st-fs-sm);
	color: var(--st-muted);
}

/* Spis treści w panelu: przyklejony, zwarty, bez wielkiej ramy z treści artykułu. */
.st-widget--toc .st-toc { margin: 0; padding: 0; background: none; border: 0; }
.st-widget--toc .st-toc__title { font-size: var(--st-fs-xs); letter-spacing: .08em; text-transform: uppercase; }
.st-widget--toc .st-toc__list { font-size: var(--st-fs-sm); }
.st-widget--toc .st-toc__item--h3 { display: none; }

/* Na wpisie panel przestaje byc zestawem pudelek. Pudelko z ramka i tlem czyta sie
   jak widget, czyli jak cos doklejonego; cienka kreska i kapitalik czytaja sie jak
   material redakcyjny - a to ta sama tresc. */
.single .st-widget {
	padding: var(--st-space-sm) 0 0;
	background: none;
	border: 0;
	border-top: 2px solid var(--st-text);
	border-radius: 0;
}

.single .st-widget__title { margin-bottom: var(--st-space-sm); }

.st-widget--qa .st-widget__q {
	margin: 0 0 .35rem;
	font-family: var(--st-font-heading);
	font-size: var(--st-fs-md);
	line-height: var(--st-lh-heading);
}

.st-widget--qa .st-widget__a { margin: 0; font-size: var(--st-fs-sm); color: var(--st-muted); }

.st-widget--pillar { border-left: 3px solid var(--st-accent); padding-left: var(--st-space-sm); }

.single .st-widget--pillar { border-left: 0; padding-left: 0; }

/* Aktywna pozycja spisu w panelu: belka przy krawedzi, zeby bylo widac, gdzie jestes,
   bez wodzenia wzrokiem po samym kolorze. */
.st-widget--toc .st-toc__list { border-left: 1px solid var(--st-border); padding-left: var(--st-space-sm); }
.st-widget--toc .st-toc__item { position: relative; }

.st-widget--toc .st-toc__item.is-active::before {
	content: "";
	position: absolute;
	left: calc(var(--st-space-sm) * -1 - 1px);
	top: .35em;
	bottom: .35em;
	width: 2px;
	background: var(--st-accent);
}

.st-widget__pillar {
	display: block;
	font-family: var(--st-font-heading);
	font-size: var(--st-fs-md);
	line-height: var(--st-lh-heading);
	color: inherit;
	text-decoration: none;
}

.st-widget__pillar:hover { color: var(--st-accent); }
.st-widget__note { margin: .35rem 0 0; font-size: var(--st-fs-xs); color: var(--st-muted); }

.st-silosection--ton1 { background: transparent; }

.st-silosection--ton2 { background: var(--st-bg-alt); }

.st-silosection--ton3 {
	background: linear-gradient(180deg,
		rgba(var(--st-accent-rgb), .07) 0%,
		rgba(var(--st-accent-rgb), .02) 100%);
}

/* Belka akcentu nad nagłówkiem sekcji siedzi na .st-section-head::before —
   na tonowanym tle domyślny, przygaszony kolor przestawał być widoczny. */
.st-silosection--ton2 .st-section-head::before,
.st-silosection--ton3 .st-section-head::before { background: var(--st-accent); }

.st-card__body { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }

.st-card__cat {
	font-size: var(--st-fs-xs);
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--st-accent);
	text-decoration: none;
	align-self: flex-start;
}

.st-card__cat:hover { text-decoration: underline; }

.st-card__title { font-size: var(--st-fs-lg); }

.st-card__title a {
	color: var(--st-text);
	text-decoration: none;
	background-image: linear-gradient(var(--st-accent), var(--st-accent));
	background-size: 0 1px;
	background-repeat: no-repeat;
	background-position: 0 100%;
	transition: background-size .25s ease, color .2s ease;
}

.st-card__title a:hover { color: var(--st-accent); background-size: 100% 1px; }

.st-card__excerpt {
	color: var(--st-muted);
	font-size: var(--st-fs-sm);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.st-card__foot {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: var(--st-fs-xs);
	color: var(--st-muted);
	margin-top: auto;
	padding-top: 0.2rem;
}

/* Wariant „horizontal" — obrazek obok tekstu. Przełącznik oparty na szerokości
   SAMEJ KARTY (container query), nie okna: ta sama karta w siatce trzykolumnowej
   zostaje pionowa, a w kolumnie pełnej szerokości układa się poziomo. */
.st-card--horizontal { container-type: inline-size; }

@container (min-width: 26rem) {
	.st-card--horizontal { flex-direction: row; gap: var(--st-space-md); align-items: flex-start; }
	.st-card--horizontal .st-card__media { flex: 0 0 40%; }
	.st-card--horizontal .st-card__img { aspect-ratio: 4 / 3; }
}

/* Wariant „overlay" — tekst na obrazku. */
.st-card--overlay { position: relative; border-radius: var(--st-radius-lg); overflow: hidden; min-height: 17rem; }
.st-card--overlay .st-card__media { position: absolute; inset: 0; border-radius: 0; }
.st-card--overlay .st-card__img { width: 100%; height: 100%; aspect-ratio: auto; }

.st-card--overlay .st-card__body {
	position: relative;
	margin-top: auto;
	padding: var(--st-space-md);
	color: #fff;
	background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.35) 55%, rgba(0,0,0,0));
}

.st-card--overlay .st-card__title a,
.st-card--overlay .st-card__excerpt,
.st-card--overlay .st-card__foot { color: #fff; }

.st-card--overlay .st-card__cat { color: #fff; opacity: .85; }

/* ------------------------------------------------------------------ *
 * 8. Nagłówki sekcji i stron
 * ------------------------------------------------------------------ */

.st-page-head { margin-bottom: var(--st-space-xl); max-width: var(--st-w-wide); }

.st-page-head__eyebrow {
	margin: 0 0 0.4rem;
	font-size: var(--st-fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--st-accent);
}

.st-page-head__title { font-size: var(--st-fs-3xl); }

.st-page-head__intro { margin-top: var(--st-space-md); color: var(--st-muted); }
.st-page-head__intro p { margin: 0 0 var(--st-space-sm); }

.st-page-head__count {
	margin-top: var(--st-space-sm);
	font-size: var(--st-fs-xs);
	color: var(--st-muted);
}

.st-page-head__query { color: var(--st-accent); }

.st-page-head__search { margin-top: var(--st-space-md); max-width: 30rem; }

.st-page-head--404 { text-align: center; margin-inline: auto; }
.st-page-head--404 .st-page-head__search { margin-inline: auto; }

.st-section-head {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--st-space-md);
	margin-bottom: var(--st-space-lg);
	padding-top: var(--st-space-sm);
	padding-bottom: var(--st-space-sm);
	border-bottom: var(--st-border) solid var(--st-border);
}

/* Krótka belka akcentu nad nagłówkiem sekcji — jeden detal, który odróżnia
   stronę od domyślnego układu „nagłówek, kreska, siatka". */
.st-section-head::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 2.5rem;
	height: 3px;
	background: var(--st-accent);
	border-radius: 2px;
}

.st-section-head__title { font-size: var(--st-fs-xl); }
.st-section-head__title a { color: inherit; text-decoration: none; }
.st-section-head__title a:hover { color: var(--st-accent); }

.st-section-head__desc {
	margin: 0.3rem 0 0;
	font-size: var(--st-fs-sm);
	color: var(--st-muted);
	max-width: 52ch;
}

.st-section-head__more {
	flex: none;
	font-size: var(--st-fs-sm);
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.st-section-head__more:hover { text-decoration: underline; }

/* Rytm sekcji niesie teraz padding-block, a nie margines: pasma tonowane ida
   na pelna szerokosc i margines zostawialby miedzy nimi biale szpary. */
.st-silosection { margin-bottom: 0; }

/* ------------------------------------------------------------------ *
 * 9. Dział: filar, poddziały
 * ------------------------------------------------------------------ */

.st-subsilos {
	display: flex;
	flex-wrap: wrap;
	gap: var(--st-space-sm);
	margin-bottom: var(--st-space-xl);
}

.st-subsilo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.85rem;
	border: var(--st-border) solid var(--st-border);
	border-radius: 999px;
	background: var(--st-surface);
	color: var(--st-text);
	text-decoration: none;
	font-size: var(--st-fs-sm);
	font-weight: 500;
	transition: border-color .18s ease, color .18s ease;
}

.st-subsilo:hover { border-color: var(--st-accent); color: var(--st-accent); }

.st-subsilo__count {
	font-size: var(--st-fs-xs);
	color: var(--st-muted);
	background: var(--st-bg-alt);
	border-radius: 999px;
	padding: 0.05rem 0.42rem;
	font-variant-numeric: tabular-nums;
}

.st-pillar {
	display: grid;
	gap: var(--st-space-lg);
	align-items: center;
	padding: var(--st-space-lg);
	margin-bottom: var(--st-space-2xl);
	background: var(--st-bg-alt);
	border: var(--st-border) solid var(--st-border);
	border-radius: var(--st-radius-lg);
}

@media (min-width: 56rem) {
	.st-pillar { grid-template-columns: 0.9fr 1.1fr; }
}

.st-pillar__media { display: block; border-radius: var(--st-radius); overflow: hidden; }
.st-pillar__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.st-pillar__label {
	margin: 0 0 0.4rem;
	font-size: var(--st-fs-xs);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--st-accent);
}

.st-pillar__title { font-size: var(--st-fs-2xl); margin-bottom: var(--st-space-sm); }
.st-pillar__title a { color: inherit; text-decoration: none; }
.st-pillar__title a:hover { color: var(--st-accent); }

.st-pillar__excerpt { color: var(--st-muted); margin-bottom: var(--st-space-md); }

/* ------------------------------------------------------------------ *
 * 10. Artykuł
 * ------------------------------------------------------------------ */

/* Nagłówek artykułu trzyma szerokość kontenera, ale jego zawartość zawija się
   do szerokości kolumny tekstu — dzięki temu tytuł zaczyna się w tej samej
   linii co treść poniżej, zamiast wisieć wyśrodkowany nad lewym akapitem. */
.st-single__head { margin-bottom: var(--st-space-lg); }
.st-single__head > * { max-width: var(--st-w-content); }
.st-single--page .st-single__head { max-width: none; }

.st-single__title { font-size: var(--st-fs-3xl); margin-bottom: var(--st-space-sm); }

.st-single__lead {
	font-size: var(--st-fs-lg);
	color: var(--st-muted);
	margin-bottom: var(--st-space-md);
	text-wrap: pretty;
}

.st-single__figure { margin: 0 0 var(--st-space-xl); max-width: var(--st-w-wide); }
.st-single__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--st-radius-lg); }

/* ------------------------------------------------------------------
   HERO WPISU — obraz pod spodem, tekst na przyciemnieniu
   Nagłówek i zdjęcie osobno wyglądały jak dwa niepowiązane bloki z pasem
   pustki pomiędzy. Gradient od dołu trzyma kontrast niezależnie od tego,
   co jest na zdjęciu — a przy obrazie dziedziczonym z działu nie wiemy tego
   z góry, bo ten sam kadr trafia pod kilkanaście różnych tytułów.
   ------------------------------------------------------------------ */

.st-hero-band {
	position: relative;
	isolation: isolate;
	margin-bottom: var(--st-space-xl);
	min-height: min(30rem, 62vh);
	display: flex;
	align-items: flex-end;
	background: var(--st-bg-alt);
}

/* Bez ujemnego z-index. Ujemna warstwa w elemencie z wlasnym tlem i `isolation`
   potrafi wpasc POD to tlo i obraz znika bez sladu w konsoli - dokladnie to sie stalo.
   Trzy jawne warstwy nie zostawiaja miejsca na interpretacje. */
.st-hero-band__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.st-hero-band__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.st-hero-band::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(180deg,
		rgba(0, 0, 0, .18) 0%,
		rgba(0, 0, 0, .48) 46%,
		rgba(0, 0, 0, .82) 100%);
}

.st-hero-band__body { position: relative; z-index: 2; padding-block: var(--st-space-2xl) var(--st-space-lg); width: 100%; }

.st-hero-band--silo { min-height: min(24rem, 48vh); margin-bottom: var(--st-space-xl); }

/* Naglowek dzialu na przyciemnieniu - te same reguly co dla wpisu, inne klasy. */
.st-hero-band .st-page-head { margin: 0; border: 0; }
.st-hero-band .st-page-head__title,
.st-hero-band .st-page-head__eyebrow { color: #fff; }
.st-hero-band .st-page-head__intro,
.st-hero-band .st-page-head__intro p,
.st-hero-band .st-page-head__count { color: rgba(255, 255, 255, .84); }

/* Wstep dzialu czyta sie szerzej niz artykul - to kilka zdan, nie dziesiec ekranow. */
.st-hero-band .st-page-head__intro { max-width: 52rem; }
.st-hero-band .st-page-head__intro p:last-child { margin-bottom: 0; }

/* W hero cala typografia siedzi na ciemnym - kolory tokenow sa tu bez znaczenia. */
.st-hero-band__body,
.st-hero-band .st-single__title,
.st-hero-band .st-single__lead,
.st-hero-band .st-meta,
.st-hero-band .st-crumbs,
.st-hero-band .st-crumbs a,
.st-hero-band .st-meta a { color: #fff; }

.st-hero-band .st-single__lead,
.st-hero-band .st-meta,
.st-hero-band .st-crumbs { color: rgba(255, 255, 255, .82); }

.st-hero-band .st-crumbs { margin-bottom: var(--st-space-md); }

.st-hero-band .st-single__head > * { max-width: var(--st-w-content); }

.st-hero-band .st-meta__cat {
	background: rgba(255, 255, 255, .16);
	color: #fff;
	backdrop-filter: blur(2px);
}

@media (prefers-reduced-transparency: reduce) {
	.st-hero-band .st-meta__cat { backdrop-filter: none; }
}

.st-single__caption {
	margin-top: var(--st-space-sm);
	font-size: var(--st-fs-xs);
	color: var(--st-muted);
}

.st-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem 0.85rem;
	font-size: var(--st-fs-xs);
	color: var(--st-muted);
}

.st-meta__cat {
	color: var(--st-accent);
	background: var(--st-accent-sf);
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.st-meta__item + .st-meta__item::before {
	content: "·";
	margin-right: 0.85rem;
	color: var(--st-border);
}

.st-meta__updated { color: var(--st-text); }

.st-toc {
	margin-block: var(--st-space-lg);
	padding: var(--st-space-md) var(--st-space-lg);
	background: var(--st-bg-alt);
	border: var(--st-border) solid var(--st-border);
	border-radius: var(--st-radius);
	max-width: var(--st-w-content);
}

.st-toc__title {
	font-size: var(--st-fs-sm);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--st-muted);
	margin: 0 0 var(--st-space-sm);
}

.st-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: st-toc;
	font-size: var(--st-fs-sm);
}

.st-toc__item { margin: 0.28rem 0; }

.st-toc__item--h3 { padding-left: var(--st-space-md); font-size: var(--st-fs-xs); }

.st-toc__item a {
	color: var(--st-text);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.st-toc__item a:hover { color: var(--st-accent); border-bottom-color: currentColor; }
.st-toc__item.is-active > a { color: var(--st-accent); font-weight: 600; }

.st-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.45rem;
	margin-top: var(--st-space-xl);
	padding-top: var(--st-space-md);
	border-top: var(--st-border) solid var(--st-border);
	max-width: var(--st-w-content);
}

.st-tags__label { font-size: var(--st-fs-xs); color: var(--st-muted); margin-right: 0.2rem; }

.st-tag {
	font-size: var(--st-fs-xs);
	color: var(--st-muted);
	background: var(--st-bg-alt);
	border: var(--st-border) solid var(--st-border);
	border-radius: 999px;
	padding: 0.22rem 0.6rem;
	text-decoration: none;
}

.st-tag:hover { color: var(--st-accent); border-color: var(--st-accent); }

.st-authorbox {
	display: flex;
	gap: var(--st-space-md);
	align-items: flex-start;
	margin-top: var(--st-space-xl);
	padding: var(--st-space-md);
	background: var(--st-bg-alt);
	border: var(--st-border) solid var(--st-border);
	border-radius: var(--st-radius);
	max-width: var(--st-w-content);
}

.st-authorbox__avatar {
	flex: none;
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--st-accent);
	color: var(--st-accent-fg);
	font-family: var(--st-font-heading);
	font-weight: 700;
	font-size: var(--st-fs-md);
}

.st-authorbox__label {
	margin: 0;
	font-size: var(--st-fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--st-muted);
}

.st-authorbox__name { margin: 0.1rem 0 0.3rem; font-family: var(--st-font-heading); font-weight: 700; }
.st-authorbox__bio { margin: 0; font-size: var(--st-fs-sm); color: var(--st-muted); }

.st-adjacent {
	display: grid;
	gap: var(--st-space-md);
	margin-top: var(--st-space-xl);
}

@media (min-width: 40rem) { .st-adjacent { grid-template-columns: 1fr 1fr; } }

.st-adjacent__link {
	display: block;
	padding: var(--st-space-md);
	border: var(--st-border) solid var(--st-border);
	border-radius: var(--st-radius);
	text-decoration: none;
	color: var(--st-text);
	transition: border-color .18s ease, background .18s ease;
}

.st-adjacent__link:hover { border-color: var(--st-accent); background: var(--st-accent-sf); }

.st-adjacent__link--next { text-align: right; }

.st-adjacent__label {
	display: block;
	font-size: var(--st-fs-xs);
	color: var(--st-muted);
	margin-bottom: 0.3rem;
}

.st-adjacent__title { font-family: var(--st-font-heading); font-weight: 600; font-size: var(--st-fs-sm); }

.st-related { margin-top: var(--st-space-2xl); }

.st-linkpages {
	margin-top: var(--st-space-lg);
	font-size: var(--st-fs-sm);
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

.st-linkpages > span, .st-linkpages a {
	border: var(--st-border) solid var(--st-border);
	border-radius: var(--st-radius-sm);
	padding: 0.2rem 0.55rem;
	text-decoration: none;
}

/* ------------------------------------------------------------------ *
 * 11. Panel boczny i widgety
 * ------------------------------------------------------------------ */

.st-widget {
	padding: var(--st-space-md);
	background: var(--st-surface);
	border: var(--st-border) solid var(--st-border);
	border-radius: var(--st-radius);
}

.st-widget__title {
	font-size: var(--st-fs-sm);
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--st-muted);
	margin: 0 0 var(--st-space-sm);
}

.st-widget ul { list-style: none; margin: 0; padding: 0; font-size: var(--st-fs-sm); }
.st-widget li { padding: 0.35rem 0; border-bottom: var(--st-border) solid var(--st-border); }
.st-widget li:last-child { border-bottom: 0; }
.st-widget a { color: var(--st-text); text-decoration: none; }
.st-widget a:hover { color: var(--st-accent); }

.st-widget__more {
	display: inline-block;
	margin-top: var(--st-space-sm);
	font-size: var(--st-fs-xs);
	font-weight: 600;
	color: var(--st-accent);
	text-decoration: none;
}

.st-widget__more:hover { text-decoration: underline; }

.st-silolist__item a { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; }

.st-silolist__count {
	flex: none;
	font-size: var(--st-fs-xs);
	color: var(--st-muted);
	font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ *
 * 12. Formularze, przyciski, paginacja
 * ------------------------------------------------------------------ */

.st-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	padding: 0.62rem 1.15rem;
	background: var(--st-accent);
	color: var(--st-accent-fg);
	border: 0;
	border-radius: var(--st-radius-sm);
	font: inherit;
	font-size: var(--st-fs-sm);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background .18s ease, translate .18s ease;
}

.st-btn:hover { background: var(--st-accent-dk); color: var(--st-accent-fg); translate: 0 -1px; }

.st-searchform { display: flex; gap: 0.5rem; }

.st-searchform__input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 0.62rem 0.85rem;
	font: inherit;
	font-size: var(--st-fs-sm);
	color: var(--st-text);
	background: var(--st-surface);
	border: var(--st-border) solid var(--st-border);
	border-radius: var(--st-radius-sm);
}

.st-searchform__input::placeholder { color: var(--st-muted); }
.st-searchform__input:focus { border-color: var(--st-accent); outline: none; box-shadow: 0 0 0 3px var(--st-accent-sf); }

.st-searchform__submit {
	flex: none;
	padding: 0.62rem 1.05rem;
	background: var(--st-accent);
	color: var(--st-accent-fg);
	border: 0;
	border-radius: var(--st-radius-sm);
	font: inherit;
	font-size: var(--st-fs-sm);
	font-weight: 600;
	cursor: pointer;
}

.st-searchform__submit:hover { background: var(--st-accent-dk); }

.st-pagination, .navigation.pagination { margin-top: var(--st-space-xl); }

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
	font-size: var(--st-fs-sm);
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.4rem;
	height: 2.4rem;
	padding: 0 0.7rem;
	border: var(--st-border) solid var(--st-border);
	border-radius: var(--st-radius-sm);
	color: var(--st-text);
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}

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

.page-numbers.current {
	background: var(--st-accent);
	border-color: var(--st-accent);
	color: var(--st-accent-fg);
	font-weight: 600;
}

.page-numbers.dots { border-color: transparent; }

.st-empty {
	padding: var(--st-space-xl);
	text-align: center;
	color: var(--st-muted);
	background: var(--st-bg-alt);
	border-radius: var(--st-radius);
}

.st-empty--front { padding-block: var(--st-space-2xl); }

/* ------------------------------------------------------------------ *
 * 13. Stopka i elementy pływające
 * ------------------------------------------------------------------ */

.st-footer {
	margin-top: var(--st-space-2xl);
	padding-block: var(--st-space-xl) var(--st-space-lg);
	background: var(--st-bg-alt);
	border-top: var(--st-border) solid var(--st-border);
	font-size: var(--st-fs-sm);
}

.st-footer__grid {
	display: grid;
	gap: var(--st-space-lg);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
	padding-bottom: var(--st-space-lg);
}

.st-footer__col--brand { max-width: 26rem; }

.st-footer__note { margin-top: var(--st-space-sm); color: var(--st-muted); }
.st-footer__note p { margin: 0 0 0.5rem; }

.st-footer__title {
	font-size: var(--st-fs-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--st-muted);
	margin: 0 0 var(--st-space-sm);
}

.st-footer__list, .st-footer__legal-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.st-footer__list li { padding: 0.32rem 0; line-height: 1.4; }
.st-footer__list a { align-items: baseline; }

.st-footer__list a, .st-footer__legal-list a {
	color: var(--st-text);
	text-decoration: none;
	display: inline-flex;
	gap: 0.45rem;
	align-items: center;
}

.st-footer__list a:hover, .st-footer__legal-list a:hover { color: var(--st-accent); }

.st-footer__count { font-size: var(--st-fs-xs); color: var(--st-muted); font-variant-numeric: tabular-nums; }

.st-footer__bar {
	display: flex;
	flex-wrap: wrap;
	gap: var(--st-space-sm) var(--st-space-lg);
	align-items: center;
	justify-content: space-between;
	padding-top: var(--st-space-md);
	border-top: var(--st-border) solid var(--st-border);
	color: var(--st-muted);
	font-size: var(--st-fs-xs);
}

.st-footer__copy { margin: 0; }

.st-footer__legal-list { display: flex; flex-wrap: wrap; gap: var(--st-space-md); }

.st-totop {
	position: fixed;
	right: var(--st-w-gutter);
	bottom: var(--st-w-gutter);
	width: 2.6rem;
	height: 2.6rem;
	display: grid;
	place-items: center;
	background: var(--st-surface);
	color: var(--st-text);
	border: var(--st-border) solid var(--st-border);
	border-radius: 50%;
	box-shadow: var(--st-shadow);
	cursor: pointer;
	z-index: 35;
}

.st-totop:hover { color: var(--st-accent); border-color: var(--st-accent); }
.st-totop[hidden] { display: none; }

/* ------------------------------------------------------------------ *
 * 14. Dostępność, druk, redukcja ruchu
 * ------------------------------------------------------------------ */

.st-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	padding: 0.7rem 1.1rem;
	background: var(--st-accent);
	color: var(--st-accent-fg);
	border-radius: 0 0 var(--st-radius-sm) 0;
	text-decoration: none;
	font-weight: 600;
}

.st-skip:focus { left: 0; }

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
	padding: 0.7rem 1.1rem;
	background: var(--st-surface);
	z-index: 100;
}

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

@media print {
	.st-header, .st-silobar, .st-footer, .st-totop, .st-layout__aside,
	.st-adjacent, .st-related, .st-toc, .st-searchform { display: none !important; }
	body { background: #fff; color: #000; font-size: 11pt; }
	.st-prose { max-width: none; }
	a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}
