/* ==========================================================================
   Znaczenie Imion — style motywu
   Źródło: design system „Modernist” z makiety (Archivo, niebieski akcent
   #2554c7, jasny grunt, 1px/2px linie) + ekrany makiety: Naglowek, Stopka,
   Strona główna, Imię Agnieszka, Imiona żeńskie, Poradnik, Redakcja,
   Kontakt, Polityka prywatności, Wyniki wyszukiwania.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokeny
   -------------------------------------------------------------------------- */
:root {
	color-scheme: light;

	--color-bg: #f3f2f2;
	--color-surface: #eae9e9;
	--color-text: #201e1d;

	/* Tekst pomocniczy. Krycie 0.65 daje kontrast 4,96:1 na tle strony

	   i 4,78:1 na kartach — powyżej progu WCAG AA (4,5:1). Wcześniejsze

	   0.55 i 0.5 dawały 3,66:1 i 3,15:1, czyli poniżej progu na leadach,

	   datach, autorach i podpisach zdjęć, a więc na większości tekstu

	   pomocniczego portalu. */

	--color-text-muted: rgba(32, 30, 29, 0.65);
	--color-divider: #dedada;

	--color-neutral-100: #f8f4f4;
	--color-neutral-200: #eae7e7;
	--color-neutral-300: #d7d3d3;
	--color-neutral-400: #bab6b6;
	--color-neutral-500: #9b9797;
	--color-neutral-600: #7d7979;
	--color-neutral-700: #605d5d;
	--color-neutral-800: #444141;
	--color-neutral-900: #2d2b2b;

	--color-accent: #2554c7;
	--color-accent-100: #eff4ff;
	--color-accent-200: #dbe6ff;
	--color-accent-300: #bcd0ff;
	--color-accent-400: #8fb0f7;
	--color-accent-500: #3d6fe0;
	--color-accent-600: #1a41a3;
	--color-accent-700: #1a41a3;
	--color-accent-800: #143084;
	--color-accent-900: #101f4d;

	--font-heading: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-heading-weight: 800;
	--font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-6: 24px;
	--space-8: 32px;

	--radius-sm: 6px;
	--radius-md: 8px;
	--radius-lg: 12px;

	--shadow-sm: 0 1px 2px rgba(45, 43, 43, 0.14);
	--shadow-md: 0 3px 10px rgba(45, 43, 43, 0.16);
	--shadow-lg: 0 12px 32px rgba(45, 43, 43, 0.22);

	--wrap: 1200px;
	--gutter: 24px;
	--sidebar: 56px;
	--measure: 780px;
}

/* --------------------------------------------------------------------------
   2. Baza
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

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

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.55;
	font-weight: 400;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-main { flex: 1; width: 100%; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-heading);
	font-weight: var(--font-heading-weight);
	line-height: 1.12;
	letter-spacing: -0.015em;
	margin: 0 0 var(--space-2);
	overflow-wrap: anywhere;
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
figcaption { font-size: 11px; margin-top: var(--space-1); color: var(--color-text-muted); }
svg { flex: none; }

.text-muted { color: var(--color-text-muted); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: rgba(37, 84, 199, 0.3); }

.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: 100;
	background: var(--color-neutral-900); color: var(--color-bg);
	padding: 8px 14px; font-family: var(--font-heading); font-weight: 800; font-size: 13px; text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--color-bg); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* --------------------------------------------------------------------------
   3. Komponenty design systemu
   -------------------------------------------------------------------------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	cursor: pointer; text-decoration: none;
	font-family: var(--font-heading); font-weight: 800; font-size: 14px; line-height: 1.2;
	color: var(--color-text); background: transparent; border: 1px solid transparent;
	padding: var(--space-2) 14px; border-radius: var(--radius-md);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); color: var(--color-text); }
.btn-secondary:hover { background: rgba(32, 30, 29, 0.07); color: var(--color-text); }
.btn-secondary:active { background: rgba(32, 30, 29, 0.14); }

.input {
	width: 100%; min-height: 36px; padding: 6px 10px; font: inherit; font-size: 14px;
	color: var(--color-text); caret-color: var(--color-accent);
	background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: rgba(32, 30, 29, 0.45); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
.input::-webkit-search-decoration, .input::-webkit-search-cancel-button { -webkit-appearance: none; }

.card {
	display: flex; flex-direction: column; gap: var(--space-2);
	padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title { font-family: var(--font-heading); font-weight: 800; font-size: 17px; line-height: 1.2; }
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.card-meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--color-text-muted); }

.tag {
	display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.02em;
	padding: 3px 10px; border-radius: 6px; text-decoration: none; white-space: nowrap;
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }
a.tag-outline:hover { background: var(--color-accent-100); }

.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--color-divider); border-radius: var(--radius-md); }
.seg-opt {
	display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font-size: 13px;
	cursor: pointer; text-decoration: none; color: var(--color-text);
}
.seg-opt + .seg-opt { border-left: 1px solid var(--color-divider); }
.seg-opt.is-on { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(.is-on):hover { background: rgba(32, 30, 29, 0.07); color: var(--color-text); }

.table, .article-body table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .article-body th {
	text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
	color: var(--color-text-muted); padding: var(--space-2); border-bottom: 2px solid var(--color-divider);
}
.table td, .article-body td { padding: var(--space-2); border-bottom: 1px solid var(--color-divider); vertical-align: top; }
.table tbody tr:hover, .article-body tbody tr:hover { background: rgba(32, 30, 29, 0.04); }

.eyebrow {
	font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-accent);
	font-family: var(--font-heading); font-weight: 800; margin-bottom: 16px;
}
.eyebrow--muted { color: var(--color-text-muted); letter-spacing: 0.1em; margin-bottom: 8px; }


/* --------------------------------------------------------------------------
   4. Baner nad menu (TP) + pasek imienin
   -------------------------------------------------------------------------- */
.ad-billboard { border-bottom: 1px solid var(--color-divider); background: var(--color-surface); }
.ad-billboard__inner { padding-top: 10px; padding-bottom: 10px; }
.ad-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 4px; }
.ad-slot--billboard picture, .ad-slot--billboard img { display: block; max-width: 1150px; width: 100%; height: auto; }
.ad-slot--billboard a { display: block; line-height: 0; }

.topbar { background: var(--color-surface); border-bottom: 1px solid var(--color-divider); font-size: 13px; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding-top: 7px; padding-bottom: 7px; }
.topbar__label {
	font-family: var(--font-heading); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
	font-size: 11px; color: var(--color-neutral-700);
}
.topbar__name { font-weight: 600; }
.topbar__name--plain { color: var(--color-neutral-700); }
.topbar__date { margin-left: auto; }

/* --------------------------------------------------------------------------
   5. Nagłówek i menu
   -------------------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--color-divider); position: relative; z-index: 40; }
.nav {
	display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; row-gap: 10px;
	padding-top: 14px; padding-bottom: 14px;
}
.nav-brand {
	display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit;
	font-family: var(--font-heading); font-weight: 800; font-size: 20px; margin-right: auto;
}
.nav-brand:hover { color: inherit; }
.brand-mark {
	width: 32px; height: 32px; background: var(--color-accent); color: var(--color-bg);
	display: grid; place-items: center; font-size: 16px; font-family: var(--font-heading); font-weight: 800; flex: none;
}
.brand-mark--sm { width: 28px; height: 28px; font-size: 14px; }
.brand-tld { color: var(--color-accent); }
.brand-logo { max-height: 40px; width: auto; }

.nav-desktop { display: flex; align-items: center; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-item > a {
	display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px;
	font-family: var(--font-heading); font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
	color: var(--color-accent-700); text-decoration: none;
}
.nav-item > a:hover, .nav-item.is-current > a { color: var(--color-accent); }
.nav-item--partner > a { font-family: var(--font-body); font-weight: 400; font-size: 13px; letter-spacing: 0; }

.podmenu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 230px; z-index: 40;
	background: var(--color-bg); border: 1px solid var(--color-divider); box-shadow: var(--shadow-md);
	flex-direction: column; padding: 4px 0; margin: 0; list-style: none;
}
.ma-podmenu:hover > .podmenu, .ma-podmenu:focus-within > .podmenu { display: flex; }
.podmenu__item > a { display: block; padding: 10px 14px; text-decoration: none; color: inherit; font-size: 13px; font-weight: 400; }
.podmenu__item > a:hover { background: var(--color-surface); color: inherit; }

.nav-search { position: relative; width: min(240px, 100%); margin-left: auto; }
.nav-search > svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); opacity: 0.6; pointer-events: none; }
.nav-search .input { padding-left: 32px; }

.suggest {
	position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 60;
	background: var(--color-bg); border: 1px solid var(--color-divider); box-shadow: var(--shadow-md);
	max-height: 320px; overflow: auto; padding: 4px 0; text-align: left;
}
.suggest__item { display: flex; align-items: baseline; gap: 8px; padding: 9px 12px; text-decoration: none; color: inherit; font-size: 14px; }
.suggest__item:hover, .suggest__item.is-active { background: var(--color-surface); color: inherit; }
.suggest__item strong { font-family: var(--font-heading); font-weight: 800; }
.suggest__empty { padding: 9px 12px; font-size: 13px; color: var(--color-text-muted); }

.btn-hamburger {
	display: none; place-items: center; width: 44px; height: 44px; margin-left: auto;
	background: transparent; border: 1px solid var(--color-divider); cursor: pointer; color: inherit; border-radius: var(--radius-sm);
}
.btn-hamburger__close, .btn-hamburger[aria-expanded="true"] .btn-hamburger__open { display: none; }
.btn-hamburger[aria-expanded="true"] .btn-hamburger__close { display: block; }

.mnav { border-top: 1px solid var(--color-divider); background: var(--color-bg); }
.mnav__inner { display: flex; flex-direction: column; padding-top: 8px; padding-bottom: 16px; }
.mnav__search { position: relative; margin: 10px 0 6px; }
.mnav__search > svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); opacity: 0.6; }
.mnav__search .input { padding-left: 32px; min-height: 44px; }
.mnav__group { border-bottom: 1px solid var(--color-divider); }
.mnav__summary {
	list-style: none; cursor: pointer; padding: 13px 0; font-family: var(--font-heading); font-weight: 800; font-size: 15px;
	display: flex; justify-content: space-between; align-items: center;
}
.mnav__summary::-webkit-details-marker { display: none; }
.mnav__group[open] .mnav__summary svg { transform: rotate(180deg); }
.mnav__sub { display: flex; flex-direction: column; padding: 0 0 10px 14px; }
.mnav__sublink { padding: 9px 0; text-decoration: none; color: inherit; font-size: 14px; }
.mnav__sublink--all { padding-left: 14px; font-weight: 600; }
.mnav__link {
	padding: 13px 0; font-size: 14px; display: flex; align-items: center; gap: 4px; text-decoration: none;
	border-bottom: 1px solid var(--color-divider); font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: inherit;
}

@media (max-width: 860px) {
	.nav-desktop, .nav-search { display: none !important; }
	.btn-hamburger { display: grid !important; }
}
@media (min-width: 861px) {
	.mnav { display: none !important; }
}

/* --------------------------------------------------------------------------
   6. Okruszki i nagłówki stron
   -------------------------------------------------------------------------- */
.breadcrumbs { font-size: 12px; margin-bottom: 16px; color: var(--color-text-muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--color-text); font-weight: 600; }

.page-head { border-bottom: 2px solid var(--color-divider); padding-bottom: 20px; margin-bottom: 20px; }
.page-head--plain { border-bottom: 0; padding-bottom: 0; }
.page-head--row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.page-head--row .seg { margin-left: auto; }
.page-head__title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 6px; }
.page-head__title--search { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.page-head__sub { margin: 0; font-size: 14px; max-width: 64ch; }
.page-head__sub p:last-child { margin-bottom: 0; }

.page-narrow-wrap { padding-top: 28px; padding-bottom: 56px; }

/* --------------------------------------------------------------------------
   7. Strona główna
   -------------------------------------------------------------------------- */
.hero { border-bottom: 1px solid var(--color-divider); }
.hero__grid {
	padding-top: 56px; padding-bottom: 56px; display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: end;
}
.hero__title { font-size: clamp(40px, 6vw, 76px); line-height: 1.02; letter-spacing: -0.02em; margin-bottom: 24px; text-wrap: balance; }
.hero__popular { font-size: 13px; margin-top: 12px; margin-bottom: 0; }
.hero__popular a { margin-left: 4px; }

.searchbar { display: flex; gap: 8px; max-width: 560px; flex-wrap: wrap; }
.searchbar__field { position: relative; flex: 1; min-width: 220px; }
.searchbar__field > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: 0.6; pointer-events: none; }
.searchbar__input { padding-left: 36px; min-height: 48px; font-size: 16px; background: var(--color-bg); }
.searchbar__btn { min-height: 48px; padding-inline: 24px; }

.day-card {
	display: block; text-decoration: none; color: inherit; background: var(--color-surface);
	border-radius: var(--radius-lg); overflow: hidden;
}
.day-card:hover { box-shadow: var(--shadow-sm); color: inherit; }
.day-card__head {
	background: var(--color-accent-100); color: var(--color-accent-800); padding: 10px 20px;
	font-family: var(--font-heading); font-weight: 800; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
	display: flex; justify-content: space-between;
}
.day-card__body { display: block; padding: 22px 20px; }
.day-card__name { display: block; font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 3vw, 42px); line-height: 1; margin-bottom: 8px; }
.day-card__text { display: block; font-size: 14px; margin-bottom: 12px; }
.day-card__more { font-family: var(--font-heading); font-weight: 800; font-size: 13px; color: var(--color-accent-700); }

.stats { border-bottom: 1px solid var(--color-divider); }
.stats__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat { padding: 20px 24px; border-right: 1px solid var(--color-divider); }
.stat:first-child { padding-left: 0; }
.stat:last-child { padding-right: 0; border-right: 0; }
.stat__num { font-family: var(--font-heading); font-weight: 800; font-size: 30px; }
.stat__label { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }

.alpha-section { border-bottom: 1px solid var(--color-divider); }
.alpha-section > .wrap { padding-top: 28px; padding-bottom: 28px; }
.alpha-section__head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.alpha-section__head h2 { margin: 0; }
.alpha-section__head span { font-size: 12px; }
.alpha-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.alpha-grid--page { margin-top: 24px; }
.alpha-key {
	display: grid; place-items: center; height: 48px; font-family: var(--font-heading); font-weight: 800; font-size: 18px;
	text-decoration: none; color: inherit; background: var(--color-surface); border-radius: var(--radius-sm);
}
a.alpha-key:hover { background: var(--color-accent-100); color: var(--color-accent-800); }
.alpha-key.is-off { color: var(--color-neutral-400); background: transparent; border: 1px dashed var(--color-divider); }

.section { border-bottom: 1px solid var(--color-divider); }
.section > .wrap { padding-top: 40px; padding-bottom: 40px; }
.section__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.section__head--tight { margin-bottom: 8px; }
.section__num { font-family: var(--font-heading); font-weight: 800; font-size: 14px; color: var(--color-accent); }
.section__title { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.section__more { margin-left: auto; font-family: var(--font-heading); font-weight: 800; font-size: 13px; white-space: nowrap; text-decoration: none; }

.grid-names { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.grid-names--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.name-card { text-decoration: none; color: inherit; padding: 16px; }
.name-card:hover { color: inherit; }
.name-card--home { background: var(--color-surface); }
.name-card--home:hover { background: var(--color-neutral-200); }
.name-card--outline { border: 1px solid var(--color-divider); background: var(--color-bg); }
.name-card--outline:hover { background: var(--color-surface); box-shadow: var(--shadow-sm); }
.name-card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.name-card__initial { font-family: var(--font-heading); font-weight: 800; font-size: 26px; line-height: 1; color: var(--color-neutral-400); }
.name-card--f .name-card__initial { color: var(--color-accent-300); }
.name-card__title { font-size: 19px; }

.poster { background: var(--color-neutral-900); color: var(--color-neutral-100); }
.poster__inner { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; }
.poster__title { margin: 0; font-size: clamp(30px, 4.5vw, 54px); line-height: 1.05; letter-spacing: -0.02em; max-width: 18ch; text-wrap: balance; }
.poster__btn { background: var(--color-bg); color: var(--color-text); min-height: 48px; padding-inline: 24px; font-size: 15px; }
.poster__btn:hover { background: var(--color-accent-100); color: var(--color-accent-800); }

.guide-list { display: flex; flex-direction: column; }
.guide-row {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 18px 0;
	border-bottom: 1px solid var(--color-divider); text-decoration: none; color: inherit;
}
.guide-row:hover { background: var(--color-surface); color: inherit; }
.guide-row__title { font-family: var(--font-heading); font-weight: 800; font-size: 18px; }
.guide-row__date { font-size: 12px; white-space: nowrap; }
.guide-row__lead { font-size: 13px; grid-column: 1 / -1; }

.guide-row--archive { grid-template-columns: 120px minmax(0, 1fr); align-items: start; padding: 20px 0; }
.guide-row__thumb { display: block; height: 80px; background: var(--color-neutral-200); overflow: hidden; }
.guide-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.guide-row__num { display: grid; place-items: center; height: 80px; font-family: var(--font-heading); font-weight: 800; font-size: 24px; color: var(--color-neutral-500); }
.guide-row__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.guide-row__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; }
.guide-row--archive .guide-row__title { font-size: 20px; }
.guide-row--archive .guide-row__lead { font-size: 14px; }

.sponsored-band { background: var(--color-neutral-100); border-bottom: 1px solid var(--color-divider); }
.sponsored-band > .wrap { padding-top: 32px; padding-bottom: 32px; }
.sponsored-band__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.sponsored-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.sponsored-card { text-decoration: none; color: inherit; background: var(--color-bg); padding: 16px; }
.sponsored-card:hover { background: var(--color-surface); color: inherit; }
.sponsored-card .card-kicker { color: var(--color-neutral-700); }

/* --------------------------------------------------------------------------
   8. Układ z lewym indeksem A–Z
   -------------------------------------------------------------------------- */
.uklad-sidebar { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); gap: 32px; }
.content-col { padding: 28px 0 56px; min-width: 0; }
.single .content-col { padding-top: 24px; }
.aside-alfabet { padding: 28px 0; }
.panel-alfabet { position: sticky; top: 16px; }
.alfabet-label {
	font-family: var(--font-heading); font-weight: 800; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
	margin-bottom: 6px; text-align: center; color: var(--color-neutral-700);
}
.alfabet-pion { display: flex; flex-direction: column; border: 1px solid var(--color-divider); }
.alfabet-pion a, .alfabet-pion span {
	display: grid; place-items: center; height: 27px; font-size: 12px; font-family: var(--font-heading); font-weight: 800;
	text-decoration: none; color: inherit; border-bottom: 1px solid var(--color-divider);
}
.alfabet-pion > :last-child { border-bottom: 0; }
.alfabet-pion a:hover, .alfabet-pion a[aria-current] { background: var(--color-neutral-900); color: var(--color-bg); }
.alfabet-pion span { color: var(--color-neutral-400); }
.aside-widgets { margin-top: 24px; font-size: 13px; }
.aside-widgets .widget { margin-bottom: 20px; }
.aside-widgets .widget__title { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-neutral-700); }
.aside-widgets ul { list-style: none; margin: 0; padding: 0; }
.aside-widgets li { padding: 4px 0; }

@media (max-width: 760px) {
	.uklad-sidebar { grid-template-columns: 1fr; gap: 0; }
	.aside-alfabet { padding-bottom: 0; }
	.panel-alfabet { position: static; display: flex; gap: 8px; align-items: baseline; }
	.alfabet-pion { flex-direction: row; flex-wrap: wrap; flex: 1; }
	.alfabet-pion a, .alfabet-pion span { width: 34px; border-right: 1px solid var(--color-divider); }
	.aside-widgets { display: none; }
}

/* --------------------------------------------------------------------------
   9. Wpis
   -------------------------------------------------------------------------- */
.article { max-width: var(--measure); }
.article__tag { margin-bottom: 10px; }
.article__title { font-size: clamp(34px, 4.5vw, 50px); margin: 10px 0 8px; }
.article__meta { font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 20px; }
.article__meta a { color: inherit; font-weight: 600; text-decoration: none; }
.article__meta a:hover { text-decoration: underline; }

.featured { margin-bottom: 24px; }

/*
 * Zdjęcie wyróżniające pokazujemy w całości, w naturalnych proporcjach.
 * Automat generuje kadry 4:3 (np. 1200×900) i przycięcie do paska ucinało
 * z nich sporą część. Wysokość liczy przeglądarka z atrybutów width/height,
 * więc treść nie skacze przy doładowaniu obrazu.
 */
.media { position: relative; overflow: hidden; background: var(--color-surface); }
.media img { display: block; width: 100%; height: auto; }

/* Kadrowanie zostaje tam, gdzie siatka wymaga równych kafli. */
.media--21x9 { aspect-ratio: 21 / 9; }
.media--21x9 img { height: 100%; object-fit: cover; }
.flag-ai {
	position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
	background: rgba(32, 30, 29, 0.85); color: var(--color-bg); font-family: var(--font-heading); font-weight: 800;
}
.flag-ai__short { display: none; }

.facts { border: 2px solid var(--color-text); margin-bottom: 24px; }
.facts__head, .box__head {
	background: var(--color-text); color: var(--color-bg); padding: 8px 16px;
	font-family: var(--font-heading); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; }
.facts__cell { padding: 14px 16px; border-right: 1px solid var(--color-divider); }
.facts__cell:last-child { border-right: 0; }
.facts__label { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px; }
.facts__value { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: 16px; }
.facts__value--accent { color: var(--color-accent-700); }

.toc { border: 1px solid var(--color-divider); background: var(--color-surface); margin-bottom: 28px; }
.toc__summary {
	list-style: none; cursor: pointer; padding: 12px 16px; font-family: var(--font-heading); font-weight: 800; font-size: 14px;
	display: flex; align-items: center; gap: 8px;
}
.toc__summary::-webkit-details-marker { display: none; }
.toc__list { margin: 0; padding: 4px 16px 14px 36px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.toc__sublist { margin: 6px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.toc a.is-active { color: var(--color-accent); font-weight: 600; }

.article-body { font-size: 16px; line-height: 1.65; }
.article-body--intro { margin-bottom: 24px; }
.article-body > * { margin-bottom: 14px; }
.article-body h2 {
	border-bottom: 2px solid var(--color-divider); padding-bottom: 8px; margin: 32px 0 14px; font-size: 26px;
}
.article-body > h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 20px; margin: 24px 0 10px; }
.article-body h4 { font-size: 17px; margin: 20px 0 8px; }
.article-body p { margin: 0 0 14px; }
.article-body a { text-decoration: underline; }
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }
.article-body blockquote {
	margin: 20px 0; padding: 14px 20px; border-left: 4px solid var(--color-accent); background: var(--color-surface);
	font-size: 17px; font-family: var(--font-heading); font-weight: 600; line-height: 1.5;
}
.article-body blockquote p { margin: 0; }
.article-body blockquote p + p { margin-top: 8px; }
.article-body blockquote cite { display: block; margin-top: 8px; font-size: 13px; font-weight: 400; font-style: normal; color: var(--color-text-muted); }
.article-body ul { margin: 0 0 14px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.article-body ul > li { position: relative; padding-left: 18px; }
.article-body ul > li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--color-accent); }
.article-body ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.article-body ol ol, .article-body ul ul, .article-body ol ul, .article-body ul ol { margin: 6px 0 0; }
.article-body ol > li::marker { font-family: var(--font-heading); font-weight: 800; color: var(--color-accent-700); }
.article-body li p { margin: 0; }
.table-scroll { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.article-body table tr:first-child td { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-text-muted); border-bottom: 2px solid var(--color-divider); }
.article-body table thead + tbody tr:first-child td { font-size: 14px; letter-spacing: 0; text-transform: none; color: inherit; border-bottom: 1px solid var(--color-divider); }
.article-body figure { margin: 20px 0; }
.article-body figure img { width: 100%; height: auto; }
.article-body img { height: auto; }
.article-body figcaption { font-size: 12px; margin-top: 6px; color: var(--color-text-muted); }
.article-body hr { height: 2px; border: 0; background: var(--color-divider); margin: 24px 0; }
.article-body .name-link { text-decoration: none; border-bottom: 1px solid var(--color-accent-300); font-weight: 600; }
.article-body .name-link:hover { border-bottom-color: var(--color-accent); }

/* FAQ z automatu: div.faq-schema-container > details > summary > h3 */
.faq-block { margin: 32px 0 14px; }
.faq-block__head { border-bottom: 2px solid var(--color-divider); padding-bottom: 8px; margin-bottom: 14px; }
.faq-block > div { display: flex; flex-direction: column; }
.faq-block p:empty { display: none; }
.faq-item { border: 1px solid var(--color-divider); border-bottom-width: 0; background: var(--color-bg); margin: 0; }
.faq-item:last-of-type { border-bottom-width: 1px; }
.faq-item__q {
	list-style: none; cursor: pointer; padding: 12px 16px; font-family: var(--font-heading); font-weight: 800; font-size: 15px;
	display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
	content: ""; flex: none; width: 15px; height: 15px;
	background: no-repeat center / contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23201e1d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
	transition: transform 0.15s;
}
.faq-item[open] > .faq-item__q::after { transform: rotate(180deg); }
.faq-item__q-text { font: inherit; margin: 0; }
.faq-item__a { padding: 0 16px 14px; font-size: 15px; line-height: 1.6; }
.faq-item__a p { margin: 0 0 8px; }
.faq-item__a p:last-child { margin-bottom: 0; }

.article-section h2, .similar h2 { border-bottom: 2px solid var(--color-divider); padding-bottom: 8px; margin: 32px 0 14px; font-size: 26px; }
.similar__list { display: flex; flex-wrap: wrap; gap: 6px; }

.share { border-top: 2px solid var(--color-divider); margin-top: 32px; padding-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share__label { font-family: var(--font-heading); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; margin-right: 8px; }

.author-box {
	margin-top: 32px; display: flex; gap: 16px; align-items: flex-start; background: var(--color-surface);
	padding: 16px; border: 1px solid var(--color-divider);
}
.author-box__name { font-family: var(--font-heading); font-weight: 800; font-size: 15px; }
.author-box__desc { font-size: 13px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.author-box__role { font-weight: 600; color: var(--color-neutral-700); }
.author-box__bio { line-height: 1.55; }

.avatar {
	width: var(--avatar, 64px); height: var(--avatar, 64px); flex: none; background: var(--color-neutral-300);
	display: grid; place-items: center; font-family: var(--font-heading); font-weight: 800; font-size: calc(var(--avatar, 64px) * 0.36); overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.related { margin-top: 40px; }
.related__title { font-size: 20px; border-bottom: 2px solid var(--color-divider); padding-bottom: 8px; margin-bottom: 14px; }
.related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* --------------------------------------------------------------------------
   10. Kategoria, archiwa literowe, indeks
   -------------------------------------------------------------------------- */
.letter-group { margin-bottom: 36px; }
.letter-group__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--color-divider); padding-bottom: 8px; flex-wrap: wrap; }
.letter-group__letter { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: 26px; line-height: 1.2; color: var(--color-accent-700); }
.letter-group__desc { font-size: 12px; }
.letter-group__more { margin-left: auto; font-size: 12px; font-family: var(--font-heading); font-weight: 800; text-decoration: none; white-space: nowrap; }

.index-list { list-style: none; margin: 0; padding: 0; columns: 4; column-gap: 24px; font-size: 14px; }
.index-list li { break-inside: avoid; padding: 4px 0; }
.index-list a { text-decoration: none; }
.index-list a:hover { text-decoration: underline; }
.index-list__g { font-size: 11px; }

.pagination { display: flex; gap: 4px; align-items: center; border-top: 2px solid var(--color-divider); padding-top: 20px; margin-top: 8px; flex-wrap: wrap; }
.pagination__status { font-size: 12px; margin-right: 12px; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px; border: 1px solid var(--color-divider);
	text-decoration: none; color: inherit; font-family: var(--font-heading); font-weight: 800; font-size: 14px;
}
.pagination a.page-numbers:hover { background: var(--color-surface); color: inherit; }
.pagination .page-numbers.current { background: var(--color-neutral-900); color: var(--color-bg); border-color: var(--color-neutral-900); }
.pagination .page-numbers.dots { border: 0; color: var(--color-text-muted); }
.pagination .prev, .pagination .next { font-size: 13px; padding: 0 14px; }

/* --------------------------------------------------------------------------
   11. Poradnik, redakcja, autor, wyszukiwarka, kontakt
   -------------------------------------------------------------------------- */
.authors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 40px; }
.author-card { border: 1px solid var(--color-divider); background: var(--color-bg); flex-direction: row; gap: 16px; align-items: flex-start; }
.author-card__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; align-items: flex-start; }
.author-card__name { font-family: var(--font-heading); font-weight: 800; font-size: 17px; }
.author-card__bio { font-size: 13px; line-height: 1.5; }
.author-card__more { font-size: 13px; font-family: var(--font-heading); font-weight: 800; text-decoration: none; margin-top: 4px; }

.author-profile { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; border-bottom: 1px solid var(--color-divider); padding-bottom: 20px; margin-bottom: 8px; }
.author-profile__body { min-width: 0; flex: 1; }
.author-profile__name { margin-bottom: 6px; font-size: 26px; }
.author-profile__bio { font-size: 14px; max-width: 64ch; margin: 8px 0 0; }

.post-rows { display: flex; flex-direction: column; }
.post-row {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 12px 0;
	border-bottom: 1px solid var(--color-divider); text-decoration: none; color: inherit;
}
.post-row:hover { background: var(--color-surface); color: inherit; }
.post-row__title { font-family: var(--font-heading); font-weight: 800; font-size: 16px; }
.post-row__date { font-size: 12px; white-space: nowrap; }

.search-filter { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; align-items: center; font-size: 12px; }
.result-list { display: flex; flex-direction: column; }
.result-row {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 16px 0;
	border-bottom: 1px solid var(--color-divider); text-decoration: none; color: inherit; align-items: start;
}
.result-row:hover { background: var(--color-surface); color: inherit; }
.result-row__type { margin-top: 2px; width: 76px; justify-content: center; }
.result-row__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.result-row__title { font-family: var(--font-heading); font-weight: 800; font-size: 18px; }
.result-row__desc { font-size: 13px; }
.result-row__url { font-size: 12px; color: var(--color-accent-700); overflow-wrap: anywhere; }

.empty-state { padding: 24px 0; }
.empty-state h2 { font-size: 24px; margin-bottom: 8px; }
.empty-state p { font-size: 14px; max-width: 52ch; }
.empty-state__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

.box { border: 2px solid var(--color-text); max-width: 640px; }
.box__body { padding: 24px; }
.box__lead { font-size: 17px; line-height: 1.6; margin-bottom: 16px; }
.contact-email {
	font-family: var(--font-heading); font-weight: 800; font-size: clamp(18px, 2.5vw, 26px); text-decoration: none;
	border-bottom: 2px solid var(--color-accent); overflow-wrap: anywhere;
}

.legal-body { max-width: 760px; font-size: 15px; }
.legal-body h2 { font-size: 22px; }
.legal-body h3 { font-size: 17px; }
.legal-body ol, .legal-body ul { gap: 6px; }

/* --------------------------------------------------------------------------
   12. Stopka
   -------------------------------------------------------------------------- */
.site-footer { background: var(--color-neutral-900); color: var(--color-neutral-100); margin-top: 0; }
.footer-grid { padding-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }
.footer-brand__row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand__name { font-family: var(--font-heading); font-weight: 800; font-size: 17px; }
.footer-desc { font-size: 13px; line-height: 1.6; color: var(--color-neutral-400); max-width: 32ch; }
.footer-ai { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--color-neutral-500); }
/* Wygląd dotychczasowego h6; poziom nagłówka podniesiony do h2, żeby
   konspekt strony nie skakał z H1 na H6. */
.footer-col__title { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-neutral-100); margin-bottom: 12px; }
.sekcja-podtytul { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* Mapa serwisu: --space-xl nie istnieje w skali (jest --space-1…8). */
.sitemap-section { margin-bottom: var(--space-8); }

/* Link „przejdź do treści” ma przenosić fokus, nie tylko przewijać stronę. */
.site-main:focus { outline: none; }

/* Imiona w pasku imienin są klikalne — samo pogrubienie tego nie pokazywało. */
a.topbar__name { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
a.topbar__name:hover { text-decoration-thickness: 2px; }
.footer-az { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 4px; max-width: 340px; }
.footer-az a, .footer-az span {
	display: grid; place-items: center; height: 32px; border: 1px solid var(--color-neutral-700); text-decoration: none;
	color: var(--color-neutral-100); font-family: var(--font-heading); font-weight: 800; font-size: 12px;
}
.footer-az a:hover { background: var(--color-neutral-700); color: var(--color-neutral-100); }
.footer-az span { color: var(--color-neutral-600); border-style: dashed; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.footer-nav a { color: var(--color-neutral-300); text-decoration: none; }
.footer-nav a:hover { color: var(--color-neutral-100); }
.footer-nav--promo a { text-decoration: underline; text-underline-offset: 3px; }

.footer-banner { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 32px; }
.ad-slot--footer { width: 300px; max-width: 100%; height: 50px; background: var(--color-neutral-800); }
.ad-slot--footer a { display: block; line-height: 0; }
.ad-slot--footer img { width: 300px; max-width: 100%; height: 50px; object-fit: contain; }

.footer-bottom { border-top: 1px solid var(--color-neutral-800); margin-top: 32px; }
.footer-bottom__inner { padding-top: 16px; padding-bottom: 16px; font-size: 12px; color: var(--color-neutral-500); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 46px; height: 46px; display: grid; place-items: center;
	background: var(--color-neutral-900); color: var(--color-neutral-100); border: 1px solid var(--color-neutral-700);
	cursor: pointer; box-shadow: var(--shadow-md);
}
.to-top:hover { background: var(--color-accent); border-color: var(--color-accent); }
.to-top[hidden] { display: none; }

/* --------------------------------------------------------------------------
   13. Responsywność
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
	.grid-names, .grid-names--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.index-list { columns: 3; }
}
@media (max-width: 700px) {
	.stats__grid { grid-template-columns: 1fr; }
	.stat { border-right: 0; border-bottom: 1px solid var(--color-divider); padding: 14px 0; }
	.stat:last-child { border-bottom: 0; }
	.hero__grid { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
	.index-list { columns: 2; }
	.guide-row--archive { grid-template-columns: 1fr; }
	.guide-row__thumb { height: 120px; }
	.related__grid { grid-template-columns: 1fr; }
	.facts__cell { border-right: 0; border-bottom: 1px solid var(--color-divider); }
	.facts__cell:last-child { border-bottom: 0; }
	.topbar__date { margin-left: 0; flex-basis: 100%; }
	.flag-ai__full { display: none; }
	.flag-ai__short { display: inline; }
}
@media (max-width: 560px) {
	:root { --gutter: 16px; }
	.grid-names, .grid-names--4 { grid-template-columns: 1fr; }
	.article__title { font-size: 30px; }
	.result-row { grid-template-columns: 1fr; gap: 6px; }
	.page-head--row .seg { margin-left: 0; }
}

/* --------------------------------------------------------------------------
   14. Druk
   -------------------------------------------------------------------------- */
@media print {
	.site-header, .topbar, .ad-slot--billboard, .aside-alfabet, .share, .to-top, .site-footer, .related, .mnav { display: none !important; }
	.uklad-sidebar { display: block; }
	body { background: #fff; color: #000; }
}

/* --------------------------------------------------------------------------
   15. Mapa serwisu (templates/page-sitemap.php)
   -------------------------------------------------------------------------- */
.page-header { padding-top: 28px; border-bottom: 2px solid var(--color-divider); padding-bottom: 20px; margin-bottom: 24px; }
.page-header h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 6px; }
.text-small { font-size: 13px; color: var(--color-text-muted); margin: 0; }
.section-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--color-divider); padding-bottom: 8px; margin: 28px 0 12px; flex-wrap: wrap; }
.section-head__title { font-size: 22px; margin: 0; }
.section-head__title a { text-decoration: none; }
.sitemap-list { list-style: none; margin: 0 0 24px; padding: 0; columns: 3; column-gap: 24px; font-size: 14px; }
.sitemap-list li { break-inside: avoid; padding: 4px 0; }
.sitemap-list a { text-decoration: none; }
.sitemap-list a:hover { text-decoration: underline; }
.sitemap-list--single { columns: 1; }
@media (max-width: 900px) { .sitemap-list { columns: 2; } }
@media (max-width: 560px) { .sitemap-list { columns: 1; } }
