/**
 * Blog — archiwum, single, paginacja, treść Gutenberg.
 * Otoczka strony i H1: assets/css/layout.css
 */

/* Paginacja */
.dk-blog-pagination__link,
.dk-blog-pagination-wrap .page-numbers {
	display: inline-flex;
	min-width: 2.5rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.75rem;
	border: 1px solid #e5e5e5;
	padding: 0.5rem 0.875rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #404040;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.dk-blog-pagination__link:hover,
.dk-blog-pagination-wrap .page-numbers:hover {
	background: #fafafa;
	border-color: #d4d4d4;
}

.dk-blog-pagination__link.is-active,
.dk-blog-pagination-wrap .page-numbers.current {
	background: #0a0a0a;
	border-color: #0a0a0a;
	color: #fff;
}

.dk-blog-pagination-wrap ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	margin-top: 3.5rem;
	list-style: none;
	padding: 0;
}

.dk-blog-pagination-wrap ul li {
	margin: 0;
}

/* Udostępnianie */
.dk-blog-share-link {
	display: inline-flex;
	align-items: center;
	border-radius: 0.75rem;
	border: 1px solid #e5e5e5;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #171717;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.dk-blog-share-link:hover {
	background: #f5f5f5;
}

/* Single post — hero + treść (Elementor 4163) */
.dk-single-date {
	display: block;
	margin-top: 1.25rem;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.5;
	color: #959595;
}

.dk-single-featured {
	border-radius: 1.25rem;
}

.dk-single-prose {
	margin-top: 0;
	width: 100%;
}

.dk-single-footer {
	margin-top: 3.5rem;
	margin-bottom: 0;
	width: 100%;
	padding-top: 2.5rem;
	border-top: 1px solid #e5e5e5;
}

@media (min-width: 768px) {
	.dk-single-footer {
		margin-top: 4rem;
		padding-top: 3rem;
	}
}

@media (max-width: 767px) {
	.dk-single-hero {
		gap: 1.75rem;
	}

	.dk-single .dk-single-prose {
		margin-top: 2.5rem;
	}
}

/* Treść wpisu — Gutenberg (jak na produkcji / dokumentacji) */
.dk-prose {
	color: #404040;
	font-size: 1.0625rem;
	line-height: 1.75;
	overflow-wrap: break-word;
	word-wrap: break-word;
	max-width: 100%;
}

.dk-prose > *:first-child {
	margin-top: 0;
}

.dk-prose > *:last-child {
	margin-bottom: 0;
}

.dk-single-prose > p:first-of-type {
	margin-top: 0;
}

.dk-prose h2,
.dk-prose h3,
.dk-prose h4 {
	color: #0a0a0a;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.3;
	margin-top: 2.75rem;
	margin-bottom: 1rem;
}

.dk-prose h2 {
	font-size: 1.375rem;
}

@media (min-width: 768px) {
	.dk-prose h2 {
		font-size: 1.5rem;
	}
}

.dk-prose h3 {
	font-size: 1.25rem;
}

.dk-prose p {
	margin-bottom: 1.25rem;
}

.dk-prose a {
	color: #2271b1;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	overflow-wrap: anywhere;
}

.dk-prose a:hover {
	color: #135e96;
}

.dk-prose a strong,
.dk-prose strong a {
	color: inherit;
}

.dk-prose a:hover strong,
.dk-prose strong a:hover {
	color: inherit;
}

.dk-prose strong {
	font-weight: 700;
	color: #0a0a0a;
}

.dk-prose ul,
.dk-prose ol {
	margin-bottom: 1.25rem;
	padding-left: 1.5rem;
}

.dk-prose li {
	margin-bottom: 0.5rem;
}

.dk-prose ul {
	list-style: disc;
}

.dk-prose ol {
	list-style: decimal;
}

.dk-prose blockquote {
	margin: 1.5rem 0;
	border-left: 3px solid #e5e5e5;
	padding-left: 1.25rem;
	color: #525252;
	font-style: italic;
}

.dk-prose img {
	max-width: 100%;
	height: auto;
	border-radius: 1rem;
}

.dk-prose .wp-block-image {
	margin: 1.75rem 0;
}

.dk-prose .wp-block-embed,
.dk-prose iframe {
	margin: 1.75rem 0;
	max-width: 100%;
}

.dk-prose .wp-block-embed__wrapper {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 1rem;
	background: #f5f5f5;
}

.dk-prose .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

.dk-prose .wp-block-table {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.dk-prose table {
	width: 100%;
	margin-bottom: 1.5rem;
	border-collapse: collapse;
	font-size: 0.9375rem;
}

.dk-prose th,
.dk-prose td {
	border: 1px solid #e5e5e5;
	padding: 0.625rem 0.75rem;
	text-align: left;
	overflow-wrap: break-word;
}

.dk-prose pre {
	max-width: 100%;
	overflow-x: auto;
}

.dk-prose :not(pre) > code {
	overflow-wrap: break-word;
}

@media (max-width: 1023px) {
	.dk-prose pre {
		white-space: pre-wrap;
	}
}

/* Nagłówki i karty — długie słowa na mobile */
.dk-page-title,
.dk-blog-card {
	overflow-wrap: break-word;
	word-wrap: break-word;
	min-width: 0;
}

.dk-blog-card > div {
	min-width: 0;
}

.dk-prose th {
	background: #fafafa;
	font-weight: 600;
	color: #0a0a0a;
}
