/*
Theme Name: Nowe Kształty 2026
Theme URI: https://www.noweksztalty.pl/
Author: Redakcja Nowe Kształty
Description: Child theme of Newsup implementing the 2026 Nowe Kształty redesign - navy and gold taken from the logo, Newsreader over Figtree, and a front page that leads with editorial writing while "Wydarzenia dnia" runs as a narrow dated stream.
Template: newsup
Version: 1.7.1
Requires PHP: 7.4
Requires at least: 6.7
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: nk2026
Tags: news, magazine, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

/* ═══════════════════════════════════════════════════════════════════════════
   1. TOKENS - colours pulled straight from the logo: navy, gold, warm grey.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
	--ink-900: #0f1a23;
	--ink-800: #16232e;
	--ink:     #1b2a37;
	--ink-600: #2a3d4d;
	--ink-500: #405669;
	--ink-400: #54687a;
	--ink-300: #9daab6;
	--ink-200: #cbd3da;
	--ink-100: #e6eaee;

	--gold-800: #6b520f;
	--gold-700: #8a6a14;
	--gold-600: #b8901f;
	--gold:     #e8ba34;
	--gold-400: #f0cc63;
	--gold-300: #f6de99;
	--gold-200: #fbecc7;
	--gold-100: #fdf6e6;

	--paper:   #f4f2ec;
	--surface: #ffffff;
	--grey:    #eeeeee;
	--divider: #d9d5cb;

	--font-heading: "Newsreader", Georgia, "Times New Roman", serif;
	--font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
	--heading-weight: 600;

	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 14px;

	--wrap: 1240px;
	--gutter: 28px;
	--rail: 332px;
}

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

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

/* The base layer is wrapped in :where() so it contributes no specificity.
   Component classes below (.nk-stream__title, .nk-badge, .nk-support ...) then
   win on whatever element they land on, instead of losing to ".nk h2" / ".nk a". */
:where(.nk) :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--font-heading);
	font-weight: var(--heading-weight);
	line-height: 1.16;
	letter-spacing: -0.012em;
	color: var(--ink);
	margin: 0 0 0.5em;
	text-wrap: balance;
}

:where(.nk a) { color: var(--gold-700); text-decoration: none; }
:where(.nk a:hover, .nk a:focus-visible) { color: var(--ink); }
.nk :focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; }
.nk img { max-width: 100%; display: block; }
/* Only `height` is dropped to zero specificity: a plain `.nk img` height rule
   outranks component classes like `.nk-team__hero` and forces height:auto,
   while max-width and display still need to beat stray plugin styles. */
:where(.nk img) { height: auto; }
.nk figure { margin: 0; }
.nk p { margin: 0 0 1em; }
.nk hr { border: 0; height: 1px; background: var(--divider); margin: 2rem 0; }

.nk-wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
	white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
	position: static !important; width: auto; height: auto;
	margin: 0; clip: auto; white-space: normal;
	background: var(--gold); color: var(--ink);
	padding: 10px 18px; border-radius: var(--radius-md); font-weight: 700;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

/* Eyebrow / kicker - the small letterspaced uppercase label used throughout. */
.nk-kicker {
	font: 700 10.5px/1 var(--font-body);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gold-600);
}
.nk-kicker a { color: inherit; }
.nk-kicker a:hover { color: var(--ink); }

.nk-badge {
	display: inline-flex; align-items: center; height: 23px; padding: 0 11px;
	background: var(--ink); color: var(--gold); border-radius: 3px;
	font: 700 10.5px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase;
}

/* Image placeholder for posts with no featured image. */
.nk-ph {
	display: block; /* a bare <span> would ignore the height set by its parent */
	background: linear-gradient(135deg, var(--ink-200), var(--ink-300));
	border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. TOPBAR / MASTHEAD / NAV
   ═══════════════════════════════════════════════════════════════════════ */
.nk-topbar {
	background: var(--ink-900);
	color: var(--ink-300);
	font: 500 11.5px/1 var(--font-body);
}
.nk-topbar .nk-wrap {
	min-height: 34px; display: flex; align-items: center;
	justify-content: space-between; gap: 16px;
}
:where(.nk-topbar a) { color: var(--ink-300); }
:where(.nk-topbar a:hover) { color: var(--gold); }
.nk-topbar__date { text-transform: lowercase; }
.nk-topbar__links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nk-support {
	display: inline-flex; align-items: center; height: 21px; padding: 0 11px;
	border-radius: 999px; background: var(--gold); color: var(--ink);
	font-weight: 700; font-size: 11px;
}
.nk-support:hover { background: var(--gold-400); color: var(--ink); }

.nk-masthead {
	background: var(--ink);
	border-bottom: 4px solid var(--gold);
}
.nk-masthead .nk-wrap {
	padding-block: 26px 24px;
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nk-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.nk-brand__logo img { height: 62px; width: auto; }
.nk-brand__title {
	font: 700 34px/1 var(--font-heading);
	color: #fff; letter-spacing: -.02em; margin: 0;
}
.nk-brand__title a { color: #fff; }
.nk-brand__tagline {
	font: 500 12px/1 var(--font-body);
	letter-spacing: .2em; text-transform: uppercase;
	color: var(--gold); margin-top: 7px;
}
.nk-masthead__note {
	text-align: right; max-width: 260px;
	font: 400 13.5px/1.5 var(--font-body); color: var(--ink-300);
}

.nk-nav { background: var(--surface); border-bottom: 1px solid var(--divider); }
.nk-nav .nk-wrap {
	display: flex; align-items: stretch; justify-content: space-between; gap: 16px;
}
.nk-nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nk-nav a { display: block; color: var(--ink); }

/* The tab strip is the flex item that gives way: min-width:0 lets it shrink
   below its content width and scroll, so adding another category can never
   push the secondary links and search off the edge of the page. */
.nk-nav__primary {
	min-width: 0; overflow-x: auto;
	-webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.nk-nav__primary::-webkit-scrollbar { display: none; }
.nk-nav__right { flex: none; }

.nk-nav__primary > ul > li > a {
	padding: 15px 22px 13px; white-space: nowrap;
	font: 700 14px/1.2 var(--font-body); letter-spacing: .03em;
	border-bottom: 3px solid transparent;
}
.nk-nav__primary > ul > li > a:hover { color: var(--gold-700); }
.nk-nav__primary > ul > li.current-menu-item > a,
.nk-nav__primary > ul > li.current-menu-parent > a,
.nk-nav__primary > ul > li.current-cat > a,
.nk-nav__primary > ul > li.nk-active > a { border-bottom-color: var(--gold); }

.nk-nav__secondary { display: flex; align-items: center; gap: 0; }
.nk-nav__secondary > ul > li > a {
	padding: 15px 15px 13px;
	font: 500 13px/1.2 var(--font-body); color: var(--ink-400);
}
.nk-nav__secondary > ul > li > a:hover { color: var(--ink); }

/* Sub-menus */
.nk-nav li { position: relative; }
.nk-nav .sub-menu {
	position: absolute; left: 0; top: 100%; z-index: 60;
	display: block; min-width: 220px; flex-direction: column;
	background: var(--surface); border: 1px solid var(--divider);
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	box-shadow: 0 10px 26px rgba(27,42,55,.14);
	opacity: 0; visibility: hidden; transform: translateY(-4px);
	transition: opacity .14s, transform .14s, visibility .14s;
}
.nk-nav li:hover > .sub-menu,
.nk-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nk-nav .sub-menu a {
	padding: 10px 16px; font: 500 13.5px/1.35 var(--font-body); color: var(--ink);
	border-bottom: 1px solid var(--ink-100);
}
.nk-nav .sub-menu li:last-child a { border-bottom: 0; }
.nk-nav .sub-menu a:hover { background: var(--gold-100); color: var(--gold-700); }

.nk-search-toggle {
	margin-left: 10px; width: 30px; height: 30px; flex: none;
	border-radius: 999px; border: 1px solid var(--ink-200); background: none;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; color: var(--ink-500); padding: 0;
}
.nk-search-toggle:hover { border-color: var(--gold-600); color: var(--gold-700); }

.nk-menu-toggle {
	display: none; width: 40px; height: 40px; flex: none; padding: 0;
	background: none; border: 0; cursor: pointer; color: var(--gold);
}

/* Mobile drawer - every section plus the secondary links, opened by the
   hamburger. Hidden entirely on desktop, where the tabs are all visible. */
.nk-nav__drawer { display: none; }
.nk-nav__drawer.is-open {
	/* display is granted only inside the mobile breakpoint below, so a drawer
	   left open while resizing cannot reappear on desktop. */
	position: absolute; left: 0; right: 0; top: 100%; z-index: 70;
	background: var(--surface);
	border-bottom: 1px solid var(--divider);
	box-shadow: 0 12px 24px rgba(27, 42, 55, .16);
	max-height: 70vh; overflow-y: auto;
}
/* The drawer lives inside .nk-nav, so it inherits that bar's flex layout from
   `.nk-nav .nk-wrap` and `.nk-nav ul` - both have to be undone here or the
   sections render as one horizontal row. */
.nk-nav__drawer .nk-wrap { display: block; padding-block: 8px 14px; }
.nk-nav__drawer ul { display: block; }
.nk-drawer__label {
	font: 700 10.5px/1 var(--font-body); letter-spacing: .16em;
	text-transform: uppercase; color: var(--gold-600);
	margin: 14px 0 2px;
}
.nk-drawer__list { display: block; list-style: none; margin: 0; padding: 0; }
.nk-drawer__list li { border-bottom: 1px solid var(--ink-100); }
.nk-drawer__list li:last-child { border-bottom: 0; }
.nk-drawer__list a {
	display: block; padding: 13px 2px;
	font: 600 16px/1.2 var(--font-body); color: var(--ink);
}
.nk-drawer__list a:hover { color: var(--gold-700); }

.nk-searchbar { background: var(--ink-800); padding: 0; display: none; }
.nk-searchbar.is-open { display: block; }
.nk-searchbar .nk-wrap { padding-block: 16px; }
.nk-searchbar form { display: flex; gap: 10px; }
.nk-searchbar input[type="search"] {
	flex: 1; min-height: 42px; padding: 8px 14px; font: 400 15px var(--font-body);
	color: var(--ink); background: #fff;
	border: 1px solid var(--ink-600); border-radius: var(--radius-md);
}
.nk-searchbar button {
	min-height: 42px; padding: 0 20px; cursor: pointer;
	background: var(--gold); color: var(--ink); border: 0;
	border-radius: var(--radius-md); font: 700 14px var(--font-body);
}
.nk-searchbar button:hover { background: var(--gold-400); }

/* ═══════════════════════════════════════════════════════════════════════════
   4. FRONT PAGE GRID
   ═══════════════════════════════════════════════════════════════════════ */
.nk-main { background: var(--paper); }
.nk-home {
	padding-block: 34px 38px;
	display: grid; grid-template-columns: minmax(0,1fr) var(--rail); gap: 38px;
	align-items: start;
}
.nk-home__lead { display: flex; flex-direction: column; gap: 34px; min-width: 0; }

/* Hero article */
.nk-hero__media { display: block; margin-bottom: 20px; }
.nk-hero__media img,
.nk-hero__media .nk-ph { width: 100%; height: 330px; object-fit: cover; border-radius: var(--radius-sm); }
.nk-hero__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.nk-hero__title { font-size: clamp(30px, 3.2vw, 43px); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 14px; max-width: 18ch; }
.nk-hero__title a { color: var(--ink); }
.nk-hero__title a:hover { color: var(--gold-700); }
.nk-hero__excerpt { font: 400 17px/1.65 var(--font-body); color: var(--ink-500); margin: 0 0 18px; max-width: 58ch; text-wrap: pretty; }

.nk-byline {
	display: flex; align-items: center; gap: 11px; flex-wrap: wrap;
	padding-top: 16px; border-top: 1px solid var(--divider);
	font: 400 13px/1 var(--font-body); color: var(--ink-400);
}
.nk-byline__avatar { width: 32px; height: 32px; border-radius: 999px; background: var(--ink-200); flex: none; overflow: hidden; }
.nk-byline__avatar img { width: 100%; height: 100%; border-radius: 999px; }
.nk-byline__author { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.nk-byline__sep { color: var(--ink-300); }

/* Two-up secondary articles */
.nk-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.nk-card__media { display: block; }
.nk-card__media img,
.nk-card__media .nk-ph { width: 100%; height: 150px; object-fit: cover; border-radius: var(--radius-sm); }
.nk-card .nk-kicker { display: block; margin: 14px 0 8px; }
.nk-card__title { font-size: 23px; line-height: 1.22; margin: 0 0 9px; }
.nk-card__title a { color: var(--ink); }
.nk-card__title a:hover { color: var(--gold-700); }
.nk-card__excerpt { font: 400 14.5px/1.6 var(--font-body); color: var(--ink-400); margin: 0 0 12px; }
.nk-card__meta { font: 500 12.5px/1 var(--font-body); color: var(--ink-500); }

/* ═══════════════════════════════════════════════════════════════════════════
   5. SIDEBAR
   ═══════════════════════════════════════════════════════════════════════ */
.nk-rail { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* "Wydarzenia dnia" - the dated daily stream, off the front page but present. */
.nk-stream { background: var(--ink); border-radius: 6px; overflow: hidden; }
.nk-stream__head {
	padding: 17px 20px 14px; border-bottom: 1px solid rgba(232,186,52,.3);
	display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.nk-stream__title {
	font: 700 12px/1 var(--font-body); letter-spacing: .16em;
	text-transform: uppercase; color: var(--gold); margin: 0;
}
.nk-stream__note { font: 500 11px/1 var(--font-body); color: var(--ink-300); }
.nk-stream__item {
	display: grid; grid-template-columns: 44px 1fr; gap: 12px;
	padding: 14px 20px; border-bottom: 1px solid rgba(157,170,182,.16);
}
.nk-stream__item:last-of-type { border-bottom: 0; }
.nk-stream__date { font: 600 11px/1.4 var(--font-body); color: var(--gold); padding-top: 2px; }
.nk-stream__label { font: 500 14px/1.42 var(--font-body); color: #fff; }
.nk-stream__item:hover .nk-stream__label { color: var(--gold-300); }
.nk-stream__more {
	display: block; padding: 13px 20px; background: rgba(232,186,52,.12);
	font: 700 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase;
	color: var(--gold);
}
.nk-stream__more:hover { background: rgba(232,186,52,.2); color: var(--gold); }

/* Widget skin. The rail is driven entirely by the site's own widgets - the
   "Wesprzyj nas" tile, "Kliknij bez ryzyka", the YouTube playlists and the
   Spotify player - so these rules have to cope with arbitrary block content:
   headings, images, buttons and third-party embed iframes. */
.nk-rail .widget {
	background: var(--surface); border: 1px solid var(--divider);
	border-radius: 6px; padding: 18px 20px;
	overflow-wrap: break-word;
}
.nk-rail .widget:empty { display: none; }

.nk-rail .widget-title, .nk-rail .widgettitle,
.nk-rail .widget > h1, .nk-rail .widget > h2,
.nk-rail .widget > h3, .nk-rail .widget > h4 {
	font: 700 11px/1.3 var(--font-body); letter-spacing: .16em;
	text-transform: uppercase; color: var(--gold-600); margin: 0 0 12px;
}
.nk-rail .widget p { font: 400 13.5px/1.55 var(--font-body); color: var(--ink-500); margin: 0 0 12px; }
.nk-rail .widget > *:last-child { margin-bottom: 0; }

.nk-rail .widget ul, .nk-rail .widget ol { list-style: none; margin: 0; padding: 0; }
.nk-rail .widget li { padding: 8px 0; border-bottom: 1px solid var(--ink-100); font-size: 14px; }
.nk-rail .widget li:last-child { border-bottom: 0; }
.nk-rail .widget a { color: var(--ink); }
.nk-rail .widget a:hover { color: var(--gold-700); }

/* Images and figures fill the card and lose the default block margins. */
.nk-rail .widget img { border-radius: var(--radius-sm); margin-inline: auto; }
.nk-rail .widget figure { margin: 0 0 12px; }
.nk-rail .widget figcaption {
	font: 400 12.5px/1.5 var(--font-body); color: var(--ink-400);
	margin-top: 8px; text-align: center;
}

/* Embeds (YouTube, Spotify) keep their aspect ratio inside the rail instead of
   overflowing it - they ship fixed width/height attributes. */
.nk-rail .widget iframe { max-width: 100%; border: 0; border-radius: var(--radius-sm); display: block; }
.nk-rail .wp-block-embed { margin: 0 0 12px; }
.nk-rail .wp-block-embed__wrapper { position: relative; }
.nk-rail .wp-block-embed-youtube .wp-block-embed__wrapper { aspect-ratio: 16 / 9; }
.nk-rail .wp-block-embed-youtube iframe { width: 100%; height: 100%; position: absolute; inset: 0; }
.nk-rail .wp-block-embed-spotify iframe { width: 100%; min-height: 152px; }

/* Iframes pasted straight into a Custom HTML widget (the "Playlisty" tile) have
   no block wrapper and carry width="560" height="315" attributes. Capping the
   width alone leaves the height at 315 and squashes them to nearly square, so
   match on the provider and restore the aspect ratio. */
.nk-rail .widget iframe[src*="youtube"],
.nk-rail .widget iframe[src*="youtu.be"] {
	width: 100%; height: auto; aspect-ratio: 16 / 9;
}
.nk-rail .widget iframe[src*="spotify"] {
	width: 100%; height: auto; min-height: 152px;
}

/* Buttons inside widgets (e.g. "Postaw kawę") pick up the theme's pill shape. */
.nk-rail .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center;
	border-radius: 999px; font: 600 13px/1 var(--font-body); padding: 10px 18px;
	text-decoration: none;
}
.nk-rail .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }

/* Tag clouds stay compact rather than dominating the column. */
.nk-rail .wp-block-tag-cloud a, .nk-rail .tagcloud a {
	display: inline-block; margin: 0 4px 6px 0; padding: 3px 9px;
	background: var(--gold-100); color: var(--gold-700);
	border-radius: 999px; font-size: 12.5px !important;
}
.nk-rail .wp-block-tag-cloud a:hover, .nk-rail .tagcloud a:hover { background: var(--gold); color: var(--ink); }

/* ═══════════════════════════════════════════════════════════════════════════
   6. CATEGORY STRIP
   ═══════════════════════════════════════════════════════════════════════ */
.nk-strip { background: var(--surface); border-top: 1px solid var(--divider); }
.nk-strip .nk-wrap { padding-block: 34px 40px; }
.nk-strip__grid {
	display: grid;
	grid-template-columns: repeat(var(--strip-cols, 5), minmax(0, 1fr));
}
.nk-strip__col { padding-inline: 20px; border-right: 1px solid var(--ink-100); }
.nk-strip__col:first-child { padding-left: 0; }
.nk-strip__col:last-child { padding-right: 0; border-right: 0; }
.nk-strip__head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.nk-strip__mark { width: 10px; height: 10px; flex: none; border-radius: 2px; }
.nk-strip__mark--1 { background: var(--gold); }
.nk-strip__mark--2 { background: var(--ink); }
.nk-strip__mark--3 { border: 2px solid var(--gold-600); }
.nk-strip__mark--4 { border: 2px solid var(--ink); border-radius: 999px; }
.nk-strip__mark--5 { background: var(--gold-600); border-radius: 999px; }
.nk-strip__mark--6 { border: 2px solid var(--gold-600); }

/* Multi-row strip: vertical rules would land mid-row, so space the sections
   apart and rule them underneath instead. */
.nk-strip__grid--wrap { column-gap: 32px; row-gap: 28px; }
.nk-strip__grid--wrap .nk-strip__col {
	padding-inline: 0; padding-bottom: 24px;
	border-right: 0; border-bottom: 1px solid var(--ink-100);
}
.nk-strip__name {
	font: 700 12px/1 var(--font-body); letter-spacing: .16em;
	text-transform: uppercase; color: var(--ink);
}
.nk-strip__title { font-size: 19px; line-height: 1.28; margin: 0 0 7px; }
.nk-strip__title a { color: var(--ink); }
.nk-strip__title a:hover { color: var(--gold-700); }
.nk-strip__excerpt { font: 400 13.5px/1.55 var(--font-body); color: var(--ink-400); margin: 0 0 14px; }
.nk-strip__meta {
	font: 500 12.5px/1 var(--font-body); color: var(--ink-500);
	padding-top: 12px; border-top: 1px solid var(--ink-100);
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.nk-footer { background: var(--ink-900); color: var(--ink-300); }
:where(.nk-footer a) { color: var(--ink-300); }
:where(.nk-footer a:hover) { color: var(--gold); }
.nk-footer__widgets .nk-wrap {
	padding-block: 40px 10px;
	display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px;
}
.nk-footer__widgets .widget-title, .nk-footer__widgets .widgettitle {
	font: 700 11px/1 var(--font-body); letter-spacing: .16em;
	text-transform: uppercase; color: var(--gold); margin: 0 0 12px;
}
.nk-footer__widgets ul { list-style: none; margin: 0; padding: 0; }
.nk-footer__widgets li { padding: 6px 0; font-size: 14px; }
.nk-footer__bar .nk-wrap {
	padding-block: 30px;
	display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.nk-footer__brand { display: flex; align-items: center; gap: 14px; }
.nk-footer__brand img { height: 38px; width: auto; }
.nk-footer__copy { font: 400 13px/1 var(--font-body); color: var(--ink-300); }
.nk-footer__links { display: flex; gap: 22px; flex-wrap: wrap; font: 500 13px/1 var(--font-body); }
.nk-footer__links ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════════════════════════════
   8. ARTICLE / ARCHIVE / PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.nk-page { padding-block: 34px 48px; }
.nk-page--split { display: grid; grid-template-columns: minmax(0,1fr) var(--rail); gap: 38px; align-items: start; }

.nk-pagehead { margin-bottom: 28px; }
.nk-pagehead__title { font-size: clamp(28px, 3vw, 40px); margin: 0 0 8px; }
.nk-pagehead__desc { font: 400 16px/1.6 var(--font-body); color: var(--ink-500); margin: 0; max-width: 62ch; }

.nk-article { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-md); overflow: hidden; }
.nk-article__hero img { width: 100%; max-height: 460px; object-fit: cover; }
.nk-article__body { padding: 32px clamp(20px, 4vw, 48px) 40px; }
.nk-article__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.nk-article__title { font-size: clamp(28px, 3.6vw, 46px); line-height: 1.12; margin: 0 0 16px; }
.nk-article__lead { font: 400 18px/1.65 var(--font-body); color: var(--ink-500); margin: 0 0 20px; max-width: 62ch; }
.nk-article__content { font-size: 17px; line-height: 1.75; color: var(--ink-800); max-width: 68ch; }
.nk-article__content h2 { font-size: 30px; margin: 1.6em 0 .5em; }
.nk-article__content h3 { font-size: 24px; margin: 1.5em 0 .45em; }
.nk-article__content h4 { font-size: 20px; margin: 1.4em 0 .4em; }
.nk-article__content a { text-decoration: underline; text-underline-offset: 3px; }
.nk-article__content img { border-radius: var(--radius-sm); margin-block: 1.2em; }
.nk-article__content blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 22px;
	border-left: 4px solid var(--gold);
	font: 600 20px/1.5 var(--font-heading); color: var(--ink);
}
.nk-article__content ul, .nk-article__content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.nk-article__content li { margin-bottom: .45em; }
.nk-article__content code {
	background: var(--gold-100); padding: 2px 6px; border-radius: 3px;
	font-size: .92em; font-family: ui-monospace, Menlo, monospace;
}
.nk-article__content pre {
	background: var(--ink); color: var(--gold-200); padding: 18px 20px;
	border-radius: var(--radius-md); overflow-x: auto;
}
.nk-article__content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.nk-article__content th, .nk-article__content td { border: 1px solid var(--divider); padding: 8px 12px; text-align: left; }
.nk-article__content th { background: var(--gold-100); }
.nk-article__footer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--divider); }
.nk-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.nk-tag {
	display: inline-flex; align-items: center; height: 26px; padding: 0 11px;
	border-radius: 999px; background: var(--gold-100); color: var(--gold-700);
	font: 600 12px/1 var(--font-body);
}
.nk-tag:hover { background: var(--gold); color: var(--ink); }

/* ── Redakcja: the team page ─────────────────────────────────────────────── */
.nk-team {
	background: var(--surface); border: 1px solid var(--divider);
	border-radius: var(--radius-md); overflow: hidden;
}
.nk-team__hero { width: 100%; height: 300px; object-fit: cover; object-position: 50% 40%; }
.nk-team__body { padding: 30px clamp(18px, 3vw, 30px) 38px; }
.nk-team__head { display: flex; align-items: center; gap: 16px; margin: 0 0 10px; }
.nk-team__title { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.nk-team__rule { flex: 1; height: 2px; background: var(--gold); }
.nk-team__intro {
	font: 400 16px/1.65 var(--font-body); color: var(--ink-500);
	margin: 0 0 28px; max-width: 66ch;
}

.nk-team__grid {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
	list-style: none; margin: 0; padding: 0;
}
.nk-card-person {
	background: var(--surface); border: 1px solid var(--ink-100);
	border-radius: var(--radius-sm); overflow: hidden;
}
/* The editor-in-chief is marked with the gold edge. */
.nk-card-person.is-lead { border-top: 3px solid var(--gold); }

.nk-card-person__inner {
	display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
	padding: 22px 20px 20px; height: 100%;
	color: inherit; text-decoration: none;
}
a.nk-card-person__inner:hover { background: var(--gold-100); }
a.nk-card-person__inner:hover .nk-card-person__name { color: var(--gold-700); }

.nk-card-person__photo {
	width: 96px; height: 96px; flex: none;
	border-radius: 999px; object-fit: cover; background: var(--ink-200);
}
.nk-card-person__name { font-size: 24px; line-height: 1.2; margin: 0 0 5px; }
.nk-card-person__role {
	font: 700 10.5px/1.3 var(--font-body); letter-spacing: .14em;
	text-transform: uppercase; color: var(--gold-600); margin: 0 0 10px;
}
.nk-card-person__bio { font: 400 14px/1.6 var(--font-body); color: var(--ink-400); margin: 0; }

@media (max-width: 1000px) {
	.nk-team__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.nk-team__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.nk-team__hero { height: 200px; }
	.nk-team__body { padding-bottom: 28px; }
	/* Side-by-side reads better than a stack once the card is full width. */
	.nk-card-person__inner { flex-direction: row; align-items: flex-start; gap: 16px; }
	.nk-card-person__photo { width: 72px; height: 72px; }
	.nk-card-person__name { font-size: 20px; }
}

/* Archive list */
.nk-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.nk-list .nk-card__media img, .nk-list .nk-card__media .nk-ph { height: 170px; }

/* Compact row used on mobile category sections */
.nk-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: start; }
.nk-row__media img, .nk-row__media .nk-ph { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.nk-row__title { font-size: 16px; line-height: 1.25; margin: 0 0 5px; }
.nk-row__meta { font: 500 11.5px/1 var(--font-body); color: var(--ink-400); }

.nk-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.nk-section-head__name {
	font: 700 11px/1 var(--font-body); letter-spacing: .18em;
	text-transform: uppercase; color: var(--ink);
}
.nk-section-head__rule { flex: 1; height: 1px; background: var(--ink-200); }

/* Pagination */
.nk-pagination { margin-top: 36px; display: flex; justify-content: center; }
.nk-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding: 0 12px; margin: 0 3px;
	border: 1px solid var(--divider); border-radius: var(--radius-md);
	background: var(--surface); color: var(--ink);
	font: 600 14px/1 var(--font-body);
}
.nk-pagination .page-numbers:hover { border-color: var(--gold-600); color: var(--gold-700); }
.nk-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.nk-pagination .dots { border: 0; background: none; }

/* Comments */
.nk-comments { margin-top: 40px; }
.nk-comments__title { font-size: 24px; margin: 0 0 20px; }
.nk-comments .comment-list { list-style: none; margin: 0; padding: 0; }
.nk-comments .comment-list li { margin-bottom: 20px; }
.nk-comments .comment-body {
	background: var(--surface); border: 1px solid var(--divider);
	border-radius: var(--radius-md); padding: 18px 20px;
}
.nk-comments .comment-author { font-weight: 600; }
.nk-comments .comment-metadata { font-size: 12.5px; color: var(--ink-400); }
.nk-comments input[type="text"], .nk-comments input[type="email"],
.nk-comments input[type="url"], .nk-comments textarea {
	width: 100%; padding: 9px 12px; font: 400 15px var(--font-body);
	border: 1px solid var(--divider); border-radius: var(--radius-md);
	background: var(--surface); color: var(--ink);
}
.nk-comments .submit {
	padding: 11px 22px; cursor: pointer; border: 0; border-radius: var(--radius-md);
	background: var(--ink); color: var(--gold); font: 700 14px var(--font-body);
}
.nk-comments .submit:hover { background: var(--ink-600); }

/* 404 / empty */
.nk-empty { text-align: center; padding-block: 60px 70px; }
.nk-empty__code { font: 600 96px/1 var(--font-heading); color: var(--gold); margin: 0 0 10px; }

/* WordPress core alignment + caption classes */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.alignwide { width: min(100%, 1100px); margin-inline: auto; }
.alignfull { width: 100%; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-block-image figcaption {
	font: 400 12.5px/1.5 var(--font-body); color: var(--ink-400); margin-top: 6px;
}
.sticky .nk-card__title::before { content: "★ "; color: var(--gold); }

/* ═══════════════════════════════════════════════════════════════════════════
   9. RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1240px) {
	.nk-strip__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
	:root { --rail: 300px; }
}

/* Once the strip wraps, vertical rules land in the wrong places - space the
   sections out and rule them underneath instead. */
@media (max-width: 1240px) {
	.nk-strip__grid { column-gap: 28px; row-gap: 26px; }
	.nk-strip__col {
		padding-inline: 0; padding-bottom: 22px;
		border-right: 0; border-bottom: 1px solid var(--ink-100);
	}
}

@media (max-width: 900px) {
	.nk-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The nav collapses on its own schedule: with five sections, the tabs and the
   secondary links overrun the bar long before the phone breakpoint. */
@media (max-width: 1100px) {
	.nk-nav { position: relative; }
	.nk-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }

	/* The drawer carries these links below this width, so the inline strip goes. */
	.nk-nav__secondary { display: none; }
	.nk-nav__drawer.is-open { display: block; }
	.nk-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; }
}

@media (max-width: 960px) {
	.nk-home, .nk-page--split { grid-template-columns: minmax(0,1fr); gap: 30px; }
	.nk-masthead__note { display: none; }
	.nk-brand__title { font-size: 28px; }
	.nk-brand__logo img { height: 50px; }
}

@media (max-width: 782px) {
	:root { --gutter: 16px; }

	.nk-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.nk-masthead .nk-wrap { padding-block: 12px; }
	.nk-masthead { border-bottom-width: 3px; }
	.nk-brand__logo img { height: 32px; }
	.nk-brand { gap: 10px; }
	.nk-brand__title { font-size: 17px; }
	.nk-brand__tagline { display: none; }

	.nk-nav .nk-wrap { padding-inline: 10px; }
	.nk-nav__primary > ul > li > a { padding: 12px 8px 10px; font-size: 12px; color: var(--ink-400); }
	.nk-nav__primary > ul > li.current-menu-item > a,
	.nk-nav__primary > ul > li.current-cat > a,
	.nk-nav__primary > ul > li.nk-active > a { color: var(--ink); }

	.nk-topbar__links span:not(.nk-support), .nk-topbar__links a:not(.nk-support) { display: none; }

	.nk-home { padding-block: 18px 22px; gap: 24px; }
	.nk-hero__media img, .nk-hero__media .nk-ph { height: 180px; }
	.nk-hero__title { font-size: 27px; max-width: none; }
	.nk-hero__excerpt { font-size: 14.5px; }
	.nk-duo { grid-template-columns: 1fr; gap: 22px; }
	/* Thumb on the left spanning the whole row; kicker, title and byline stack
	   in the second column. Without the row span, auto-placement drops the
	   title back into the 96px thumbnail column. */
	.nk-duo .nk-card {
		display: grid; grid-template-columns: 96px 1fr;
		column-gap: 12px; row-gap: 0; align-items: start;
	}
	.nk-duo .nk-card__media { grid-column: 1; grid-row: span 3; }
	.nk-duo .nk-card__media img, .nk-duo .nk-card__media .nk-ph { width: 96px; height: 72px; }
	.nk-duo .nk-card .nk-kicker { margin: 0 0 5px; }
	.nk-duo .nk-card__title { font-size: 16px; margin-bottom: 5px; }
	.nk-duo .nk-card__excerpt { display: none; }
	.nk-duo .nk-card__meta { font-size: 11.5px; }

	.nk-strip__grid { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
	.nk-strip__col:last-child { padding-bottom: 0; border-bottom: 0; }

	.nk-article__body { padding: 22px 16px 30px; }
	.nk-article__content { font-size: 16px; }
	.nk-footer__bar .nk-wrap { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
	.nk-topbar, .nk-nav, .nk-rail, .nk-strip, .nk-footer, .nk-searchbar { display: none !important; }
	body.nk { background: #fff; }
	.nk-article { border: 0; }
}
