/*
 * Droga na Szczyt — Dodatkowe style (uzupełnienie theme.json)
 * Tylko to, czego nie da się wyrazić przez theme.json
 */

/* ============================================================
   RESET I BAZA
   ============================================================ */
*, *::before, *::after {
	box-sizing: border-box;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAFIA — TREŚĆ WPISU
   ============================================================ */
.wp-block-post-content p,
.wp-block-post-content li {
	font-size: 1.125rem;
	line-height: 1.85;
	color: #1a1a1a;
}

.wp-block-post-content a {
	text-decoration: underline;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 3px;
}

.wp-block-post-content a:hover {
	text-decoration-thickness: 0.12em;
}

.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4 {
	margin-top: 2.5rem;
	margin-bottom: 1rem;
}

.wp-block-post-content blockquote {
	margin: 2.5rem 0;
	padding: 1.5rem 2rem;
	border-left: 4px solid #2c3e50;
	background: #f8f9fa;
	font-style: italic;
}

.wp-block-post-content blockquote p {
	font-size: 1.2rem;
	line-height: 1.7;
	color: #2c3e50;
}

.wp-block-post-content img {
	border-radius: 4px;
	max-width: 100%;
	height: auto;
}

.wp-block-post-content figure {
	margin: 2.5rem 0;
}

.dns-newsletter-section {
	margin: 0 auto 3rem;
	padding: 3.25rem 2rem;
	background: #2c3e50;
	color: #fff;
}

.dns-newsletter-inner {
	max-width: 720px;
	margin: 0 auto;
}

.dns-newsletter-eyebrow {
	margin: 0 0 0.75rem;
	color: #b7e4c7;
	font-family: Inter, sans-serif;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.dns-newsletter-section h2 {
	margin: 0 0 0.75rem;
	color: #fff;
	font-family: Inter, sans-serif;
	font-size: clamp(1.6rem, 3vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.15;
}

.dns-newsletter-intro {
	max-width: 620px;
	margin: 0 0 1.75rem;
	color: rgba(255, 255, 255, 0.78);
	font-size: 1rem;
	line-height: 1.7;
}

.dns-newsletter-section .dt-notify-form {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.85rem 1rem;
	align-items: end;
}

.dns-newsletter-section .dt-notify-field,
.dns-newsletter-section .dt-notify-consent,
.dns-newsletter-section .dt-notify-submit {
	margin: 0;
}

.dns-newsletter-section .dt-notify-field {
	grid-column: 1 / 2;
}

.dns-newsletter-section .dt-notify-field label {
	display: block;
	margin-bottom: 0.4rem;
	color: #fff;
	font-family: Inter, sans-serif;
	font-size: 0.8rem;
	font-weight: 700;
}

.dns-newsletter-section .dt-notify-field input[type="email"] {
	width: 100%;
	min-height: 2.85rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
	background: #fff;
	color: #1a1a1a;
	font: 0.95rem/1.2 Inter, sans-serif;
}

.dns-newsletter-section .dt-notify-consent {
	grid-column: 1 / -1;
	color: rgba(255, 255, 255, 0.72);
	font: 0.78rem/1.5 Inter, sans-serif;
}

.dns-newsletter-section .dt-notify-consent label {
	display: flex;
	gap: 0.55rem;
	align-items: flex-start;
}

.dns-newsletter-section .dt-notify-consent input {
	flex: 0 0 auto;
	margin-top: 0.15rem;
	accent-color: #b7e4c7;
}

.dns-newsletter-section .dt-notify-submit {
	grid-column: 2 / 3;
	grid-row: 1;
}

.dns-newsletter-section .dt-notify-submit button {
	min-height: 2.85rem;
	padding: 0.7rem 1.25rem;
	border: 1px solid #b7e4c7;
	border-radius: 4px;
	background: #b7e4c7;
	color: #173325;
	cursor: pointer;
	font: 700 0.82rem/1.2 Inter, sans-serif;
	white-space: nowrap;
}

.dns-newsletter-section .dt-notify-submit button:hover {
	background: #d7f2df;
}

.dns-newsletter-section p[role="status"] {
	grid-column: 1 / -1;
	margin: 0 0 1rem;
	color: #d7f2df;
	font-family: Inter, sans-serif;
	font-size: 0.9rem;
}

.wp-block-post-content figcaption {
	text-align: center;
	font-size: 0.85rem;
	color: #888;
	margin-top: 0.75rem;
	font-style: italic;
}

/* Moduł autora — portret nie powinien dominować sekcji */
.wp-block-columns.alignwide > .wp-block-column:first-child .wp-block-image img {
	display: block;
	width: 100%;
	max-width: 240px;
	height: auto;
	margin-inline: auto;
}

@media (max-width: 600px) {
	.wp-block-columns.alignwide > .wp-block-column:first-child .wp-block-image img {
		max-width: 180px;
	}
}

/* ============================================================
   STOPKA I LINK PRAWNY
   ============================================================ */
.dns-site-footer {
	color: #aeb5bb;
}

/* Klasyczne menu „Menu główne” renderowane z lokalizacji primary. */
.dns-nav {
	position: relative;
	flex: 0 0 auto;
	width: auto;
}

.dns-nav__panel {
	display: block;
}

.dns-nav__list {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-end;
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dns-nav__list li {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dns-nav__list a {
	display: block;
	padding: 0;
	color: #2c3e50;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s ease;
}

.dns-nav__list a:hover,
.dns-nav__list .current-menu-item > a,
.dns-nav__list .current-menu-ancestor > a {
	color: #1a1a1a;
}

.dns-nav__list .dns-nav-policy-link {
	margin-left: 0.25rem;
	padding-left: 1.5rem;
	border-left: 1px solid #d9dee3;
}

.dns-nav__list .dns-nav-policy-link > a {
	color: #4d5b66;
	font-size: 0.82rem;
	font-weight: 600;
}

.dns-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 0.75rem);
	left: -1rem;
	z-index: 20;
	display: none;
	min-width: 12rem;
	margin: 0;
	padding: 0.65rem;
	border: 1px solid #e9ecef;
	background: #fff;
	box-shadow: 0 12px 30px rgba(26, 26, 26, 0.12);
	list-style: none;
}

.dns-nav__list li:hover > .sub-menu,
.dns-nav__list li:focus-within > .sub-menu {
	display: block;
}

.dns-nav__list .sub-menu a {
	padding: 0.55rem 0.7rem;
	white-space: nowrap;
}

.dns-nav__toggle {
	display: none;
	align-items: center;
	gap: 0.65rem;
	padding: 0.55rem 0.7rem;
	border: 1px solid #d9dee3;
	border-radius: 4px;
	background: #fff;
	color: #2c3e50;
	cursor: pointer;
	font: 600 0.82rem/1.2 Inter, sans-serif;
}

.dns-nav__toggle-icon {
	display: inline-flex;
	flex-direction: column;
	gap: 3px;
	width: 1rem;
}

.dns-nav__toggle-icon span {
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.dns-nav.is-open .dns-nav__toggle-icon span:first-child {
	transform: translateY(5px) rotate(45deg);
}

.dns-nav.is-open .dns-nav__toggle-icon span:nth-child(2) {
	opacity: 0;
}

.dns-nav.is-open .dns-nav__toggle-icon span:last-child {
	transform: translateY(-5px) rotate(-45deg);
}

/* Nagłówek zachowuje starsze style także dla zapisanych bloków nawigacji WP. */
header .wp-block-navigation .dns-nav-policy-link,
header .wp-block-navigation .dns-nav-policy-link .wp-block-navigation-item__content {
	color: #4d5b66 !important;
	font-size: 0.82rem !important;
	font-weight: 600 !important;
}

header .wp-block-navigation .dns-nav-policy-link {
	margin-left: 0.25rem !important;
	padding-left: 1.5rem !important;
	border-left: 1px solid #d9dee3 !important;
}

@media (max-width: 1000px) and (min-width: 781px) {
	header .wp-block-navigation .wp-block-navigation__container {
		gap: 1.1rem !important;
	}

	header .wp-block-navigation .wp-block-navigation-item__content,
	header .wp-block-navigation a {
		font-size: 0.82rem !important;
	}
}

@media (max-width: 780px) {
	.dns-nav__toggle {
		display: inline-flex;
	}

	.dns-nav__panel {
		position: absolute;
		top: calc(100% + 0.75rem);
		right: 0;
		z-index: 30;
		display: none;
		min-width: min(18rem, calc(100vw - 2rem));
		padding: 0.6rem;
		border: 1px solid #e9ecef;
		background: #fff;
		box-shadow: 0 16px 36px rgba(26, 26, 26, 0.14);
	}

	.dns-nav.is-open .dns-nav__panel {
		display: block;
	}

	.dns-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.dns-nav__list > li > a {
		padding: 0.7rem 0.8rem;
		white-space: nowrap;
	}

	.dns-nav__list .dns-nav-policy-link {
		margin-top: 0.35rem;
		margin-left: 0;
		padding-top: 0.35rem;
		padding-left: 0.8rem;
		border-top: 1px solid #d9dee3;
		border-left: 0;
	}

	.dns-nav__list .sub-menu {
		position: static;
		display: block;
		min-width: 0;
		padding: 0 0 0 0.8rem;
		border: 0;
		box-shadow: none;
	}
}

.dns-footer-inner {
	max-width: 1100px;
	margin-inline: auto;
}

.dns-footer-top,
.dns-footer-bottom {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
}

.dns-footer-top {
	padding-bottom: 2.25rem;
}

.dns-footer-bottom {
	align-items: center;
	padding-top: 1.25rem;
	border-top: 1px solid #2d3742;
}

.dns-footer-brand-block,
.dns-footer-contact {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.dns-footer-contact {
	gap: 0.35rem;
	text-align: right;
}

.dns-footer-contact-label {
	color: #b7e4c7 !important;
	font-family: Inter, sans-serif;
	font-size: 0.7rem !important;
	font-weight: 700;
	letter-spacing: 0.12em;
}

.dns-footer-contact-details a {
	color: #fff;
	text-decoration: none;
}

.dns-footer-contact-details a:hover,
.dns-footer-legal a:hover {
	color: #d7f2df;
}

.dns-footer-copy,
.dns-footer-tagline {
	color: #aeb5bb !important;
}

.dns-footer-legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}

.dns-footer-legal a,
.dns-cookie-settings-trigger {
	color: #b7e4c7;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.dns-cookie-settings-trigger {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
}

.dns-cookie-settings-trigger:hover {
	color: #d7f2df;
}

@media (max-width: 760px) {
	.dns-footer-top,
	.dns-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 1.5rem;
	}

	.dns-footer-contact {
		text-align: left;
	}

	.dns-footer-bottom {
		gap: 1rem;
	}

	.dns-footer-legal {
		justify-content: flex-start;
	}
}

.wp-block-post-content code {
	background: #f0f1f3;
	padding: 0.15em 0.4em;
	border-radius: 3px;
	font-size: 0.9em;
}

.wp-block-post-content pre {
	background: #1a1a1a;
	color: #f8f9fa;
	padding: 1.5rem;
	border-radius: 6px;
	overflow-x: auto;
	font-size: 0.9rem;
	line-height: 1.6;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.wp-block-cover.alignfull {
	background-position: center center;
	background-size: cover;
}

/* ============================================================
   SEKCJA STATYSTYK (wp:html — zero walidacji bloków)
   ============================================================ */
.dns-stats-row {
	display: flex;
	flex-wrap: wrap;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 2rem;
	gap: 2rem;
}

.dns-stat-item {
	flex: 1 1 180px;
	border-top: 3px solid #2c3e50;
	padding-top: 2rem;
	padding-bottom: 2rem;
	text-align: center;
	transition: transform 0.2s ease;
}

.dns-stat-column {
	padding: 0 !important;
	border-radius: 0;
}

.dns-stat-column .dns-stat-item {
	width: 100%;
	min-height: 9rem;
}

.dns-stat-item:hover {
	transform: translateY(-3px);
}

.dns-stat-item--highlight {
	border-top-color: #1a6b3c;
	background-color: #f0fdf4;
	border-radius: 0 0 6px 6px;
}

.dns-stat-number {
	font-family: 'Inter', sans-serif;
	font-size: clamp(2.5rem, 5vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	color: #2c3e50;
	margin: 0 0 0.5rem 0;
}

.dns-stat-number--highlight {
	color: #1a6b3c;
}

.dns-stat-label {
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	letter-spacing: 0.12em;
	font-weight: 700;
	color: #1a1a1a;
}

@media (max-width: 600px) {
	.dns-stats-row {
		gap: 0;
	}
	.dns-stat-item {
		flex: 1 1 45%;
	}

	.wp-block-columns .dns-stat-column {
		flex-basis: 100% !important;
	}
}

/* ============================================================
   LISTA WPISÓW (QUERY LOOP)
   ============================================================ */
.wp-block-post-template .wp-block-group:last-child {
	border-bottom: none !important;
}

.wp-block-post-title a {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.15s ease;
}

.wp-block-button__link {
	text-decoration: none !important;
}

.wp-block-post-title a:hover {
	color: #2c3e50;
}

/* ============================================================
   NAWIGACJA STRONY
   ============================================================ */
.wp-block-query-pagination {
	margin-top: 3rem;
}

.wp-block-query-pagination-numbers .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a1a1a;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.wp-block-query-pagination-numbers .page-numbers:hover,
.wp-block-query-pagination-numbers .page-numbers.current {
	background: #2c3e50;
	color: #fff;
}

/* ============================================================
   NAWIGACJA MIĘDZY WPISAMI
   ============================================================ */
.wp-block-post-navigation-link a {
	color: #2c3e50;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: color 0.15s ease;
}

.wp-block-post-navigation-link a:hover {
	color: #1a1a1a;
}

/* ============================================================
   NAGŁÓWEK SERWISU
   ============================================================ */
.wp-block-site-title a {
	text-decoration: none !important;
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
.dns-about-section {
	box-sizing: border-box;
	padding-inline: 2rem;
}

@media (max-width: 600px) {
	.wp-block-columns {
		gap: 1.5rem !important;
	}

	.dns-about-section {
		padding-inline: 1rem;
	}

	.wp-block-query {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.wp-block-post-content p,
	.wp-block-post-content li {
		font-size: 1rem;
	}

	.dns-newsletter-section {
		padding: 2.5rem 1rem;
	}

	.dns-newsletter-section .dt-notify-form {
		display: block;
	}

	.dns-newsletter-section .dt-notify-field {
		margin-bottom: 0.85rem;
	}

	.dns-newsletter-section .dt-notify-consent {
		margin: 1rem 0;
	}

	.dns-newsletter-section .dt-notify-submit button {
		width: 100%;
	}
}

/* ============================================================
   LICZNIK DNI — live dot + label
   ============================================================ */
.dns-live-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.dns-live-dot {
	display: inline-block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #22c55e;
	flex-shrink: 0;
	animation: dns-pulse 2s infinite;
}

@keyframes dns-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
	70%  { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
	100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* ============================================================
   DOSTĘPNOŚĆ — FOCUS STYLES
   ============================================================ */
a:focus-visible,
button:focus-visible {
	outline: 2px solid #2c3e50;
	outline-offset: 3px;
	border-radius: 2px;
}

/* ============================================================
   DRUKOWANIE
   ============================================================ */
@media print {
	.dns-nav,
	.wp-block-navigation,
	.wp-block-query-pagination,
	.wp-block-post-navigation-link {
		display: none;
	}
}
