/*
Theme Name: Independent Publisher — NodalPoint
Template: independent-publisher
Description: Child theme z magazynową stroną główną dla nodalpoint.pl
Version: 1.1.0
*/

/* ── Strona główna: layout magazynowy ─────────────────────────────── */

/* Schowaj motywowy lewy sidebar (avatar + menu) i poszerz kontener
 * na widokach z własnym mastheadem: home + słownik */
body.home #masthead,
body.home .widget-area,
body.single-np_glossary #masthead,
body.single-np_glossary .widget-area,
body.post-type-archive-np_glossary #masthead,
body.post-type-archive-np_glossary .widget-area { display: none; }
body.home .site,
body.post-type-archive-np_glossary .site {
	max-width: 1200px;
	padding: 0 32px;
	margin-top: 0;
}
body.single-np_glossary .site {
	max-width: 860px;
	padding: 0 32px;
	margin-top: 0;
}
body.home .site-content,
body.single-np_glossary .site-content,
body.post-type-archive-np_glossary .site-content {
	float: none;
	max-width: none;
	width: 100%;
}

.np-front {
	font-family: Helvetica, Arial, sans-serif;
	padding-bottom: 3em;
}
.np-front a { text-decoration: none; }

/* ── Masthead ── */
.np-masthead {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 0.5em 1.5em;
	padding: 1.4em 0 1.1em;
	border-bottom: 3px solid #111;
	margin-bottom: 2em;
}
.np-logo {
	font-size: 1.9em;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
	line-height: 1;
}
.np-logo a,
.site-content .np-logo a { color: #111; }
.site-content .np-nav a { color: #333; }
.site-content .np-nav a:hover { color: #000; }
.np-nav { display: flex; flex-wrap: wrap; gap: 0.2em 1.4em; }
.np-nav a,
.np-nav a:visited {
	color: #333;
	font-size: 0.95em;
	font-weight: 600;
	padding: 0.3em 0;
}
.np-nav a:hover { color: #000; box-shadow: 0 2px 0 #111; }

/* ── Featured ── */
.np-featured {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 2em;
	margin-bottom: 2.8em;
}
.np-lead-img {
	display: block;
	aspect-ratio: 16/9;
	overflow: hidden;
	border-radius: 6px;
	background: #f3f3f3;
	margin-bottom: 0.9em;
}
.np-lead-img img { width: 100%; height: 100%; object-fit: cover; }
.np-lead h2 {
	font-size: 1.6em;
	line-height: 1.25;
	margin: 0.15em 0 0.4em;
	font-weight: 700;
}
.np-lead h2 a { color: #111; }
.np-lead h2 a:hover { color: #444; }

.np-side { display: flex; flex-direction: column; gap: 1.1em; }
.np-side-item {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 0.9em;
	align-items: center;
	padding-bottom: 1.1em;
	border-bottom: 1px solid #eee;
}
.np-side-item:last-child { border-bottom: 0; padding-bottom: 0; }
.np-side-img {
	display: block;
	width: 84px; height: 84px;
	overflow: hidden;
	border-radius: 6px;
	background: #f3f3f3;
}
.np-side-img img { width: 100%; height: 100%; object-fit: cover; }
.np-side-item h3 {
	font-size: 0.95em;
	line-height: 1.35;
	margin: 0;
	font-weight: 600;
}
.np-side-item h3 a { color: #111; }
.np-side-item h3 a:hover { color: #444; }

@media (max-width: 900px) {
	.np-featured { grid-template-columns: 1fr; }
}

/* ── Nagłówki sekcji ── */
.np-front h2.np-section-title {
	font-size: 1.25em;
	margin: 0 0 1em;
	padding-bottom: 0.45em;
	border-bottom: 2px solid #111;
	color: #111;
	font-weight: 700;
}
.np-section { margin-bottom: 2.8em; }

/* ── Siatka kart ── */
.np-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.8em;
}
@media (max-width: 860px) { .np-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .np-grid { grid-template-columns: 1fr; } }

.np-card { display: flex; flex-direction: column; }
.np-card .np-card-img {
	display: block;
	aspect-ratio: 16/9;
	overflow: hidden;
	border-radius: 6px;
	background: #f3f3f3;
	margin-bottom: 0.75em;
}
.np-card .np-card-img img {
	width: 100%; height: 100%;
	object-fit: cover;
	transition: transform .25s;
}
.np-card:hover .np-card-img img { transform: scale(1.04); }
.np-card-cat {
	display: block;
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #b00;
	margin-bottom: 0.35em;
}
.np-card h3 {
	font-size: 1.02em;
	line-height: 1.4;
	margin: 0 0 0.35em;
	font-weight: 600;
}
.np-card h3 a { color: #111; }
.np-card h3 a:hover { color: #444; }
.np-card .np-card-excerpt {
	font-size: 0.88em;
	color: #777;
	line-height: 1.55;
	margin: 0;
}

/* ── Słownik ── */
.np-glossary-box {
	background: #f7f8fa;
	border: 1px solid #ececec;
	border-radius: 8px;
	padding: 1.5em 1.7em;
}
.np-glossary-intro { color: #555; margin: 0 0 1em; font-size: 0.95em; }
.np-glossary-box .np-archive-cats { margin-bottom: 1.2em; }
.np-front h2.np-section-title a,
.np-front h2.np-section-title a:visited { color: inherit; }
.np-glossary-terms { display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0 0 1.1em; padding: 0; list-style: none; }
.np-glossary-terms li a,
.np-glossary-terms li a:visited {
	display: inline-block;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 2em;
	padding: 0.35em 0.95em;
	font-size: 0.88em;
	color: #333;
}
.np-glossary-terms li a:hover { border-color: #111; color: #111; }
.np-more-link,
.np-more-link:visited { font-weight: 600; font-size: 0.92em; color: #111; }
.np-more-link:hover { text-decoration: underline; }

/* ── Słownik: pojedyncze hasło ── */
.np-crumbs {
	font-size: 0.88em;
	color: #999;
	margin-bottom: 1.8em;
}
.np-crumbs a { color: #666; font-weight: 600; }
.np-crumbs a:hover { color: #111; }
.np-crumbs span { margin: 0 0.35em; }

.np-term-head { margin-bottom: 1.4em; }
.np-term-kicker {
	display: block;
	font-size: 0.72em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #b00;
	margin-bottom: 0.5em;
}
.np-term-title {
	font-size: 2.2em;
	line-height: 1.15;
	margin: 0 0 0.2em;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #111;
}
.np-term-full {
	font-size: 1.05em;
	color: #888;
	font-style: italic;
	margin: 0;
}
.np-term-content { margin-bottom: 2.5em; }
.np-term-related .np-glossary-terms { margin-bottom: 1em; }

/* ── Słownik: archiwum A–Z ── */
.np-archive-head { margin-bottom: 2.2em; }
.np-archive-intro {
	color: #666;
	max-width: 640px;
	margin: 0.3em 0 1.2em;
	line-height: 1.6;
}
.np-archive-cats { display: flex; flex-wrap: wrap; gap: 0.5em; }
.np-archive-cats a,
.np-archive-cats a:visited {
	display: inline-block;
	border: 1px solid #ddd;
	border-radius: 2em;
	padding: 0.4em 1em;
	font-size: 0.88em;
	color: #333;
}
.np-archive-cats a span { opacity: 0.5; margin-left: 0.25em; font-size: 0.9em; }
.np-archive-cats a:hover { border-color: #111; color: #111; }
.np-archive-cats a.is-active { background: #111; border-color: #111; color: #fff; }
.np-archive-cats a.is-active span { opacity: 0.6; }

.np-letter-group {
	display: grid;
	grid-template-columns: 60px 1fr;
	gap: 1.2em;
	padding: 1.3em 0;
	border-top: 1px solid #eee;
}
.np-letter {
	font-size: 1.7em;
	font-weight: 800;
	color: #ccc;
	margin: 0;
	line-height: 1;
}
.np-letter-list { list-style: none; margin: 0; padding: 0; }
.np-letter-list li { margin-bottom: 0.55em; }
.np-letter-list a,
.np-letter-list a:visited { font-weight: 600; color: #111; }
.np-letter-list a:hover { color: #b00; }
.np-letter-def { color: #999; font-size: 0.88em; margin-left: 0.5em; }

/* ── Kategorie ── */
.np-cats { display: flex; flex-wrap: wrap; gap: 0.6em; }
.np-cats a {
	display: inline-block;
	padding: 0.55em 1.15em;
	background: #111;
	color: #fff;
	border-radius: 2em;
	font-size: 0.9em;
}
.np-cats a:hover { background: #333; }
.np-cats a span { opacity: 0.55; margin-left: 0.35em; font-size: 0.85em; }
