/*
 * Warstwa WordPressa: elementy, ktorych nie ma w statycznym projekcie
 * (dostepnosc, tresc edytora, komentarze, nawigacja mobilna, paginacja).
 */

/* --- Dostepnosc ---------------------------------------------------------- */

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.eh24-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 200;
	background: var(--ink);
	color: #fff;
	padding: 14px 20px;
	font-weight: 800;
	font-size: 13px;
}

.eh24-skip:focus {
	left: 0;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: 2px;
}

/* Pulapka na boty - niewidoczna, ale nie display:none (boty to wykrywaja). */
.eh24-trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Pasek administratora ------------------------------------------------ */

.admin-bar .header {
	top: 32px;
}

.admin-bar .tabs {
	top: 170px;
}

@media (max-width: 782px) {
	.admin-bar .header {
		top: 46px;
	}
}

/* --- Naglowek: przyciski mobilne ---------------------------------------- */

.eh24-burger,
.eh24-search-toggle {
	display: none;
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	color: inherit;
}

@media (max-width: 1000px) {
	.eh24-burger,
	.eh24-search-toggle {
		display: flex;
	}

	.header .search.is-open {
		display: flex;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		height: 58px;
		border-left: 0;
		border-right: 0;
		background: #fff;
		padding: 0 max(18px, calc((100vw - var(--max)) / 2));
		z-index: 25;
	}
}

.topbar a:hover {
	color: #fff;
}

/* --- Szuflada mobilna ---------------------------------------------------- */

.eh24-drawer {
	position: fixed;
	inset: 0;
	z-index: 90;
	visibility: hidden;
	opacity: 0;
	transition: opacity .25s ease, visibility .25s ease;
}

.eh24-drawer.is-open {
	visibility: visible;
	opacity: 1;
}

.eh24-drawer-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 13, 17, .6);
}

.eh24-drawer-panel {
	position: absolute;
	inset: 0 auto 0 0;
	width: min(400px, 88vw);
	background: #fff;
	display: flex;
	flex-direction: column;
	transform: translateX(-100%);
	transition: transform .28s cubic-bezier(.2, .75, .2, 1);
	overflow-y: auto;
}

.eh24-drawer.is-open .eh24-drawer-panel {
	transform: none;
}

.eh24-drawer-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 22px;
	border-bottom: 1px solid var(--line);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .14em;
}

.eh24-drawer-close {
	border: 1px solid var(--line);
	background: none;
	width: 38px;
	height: 38px;
	display: grid;
	place-items: center;
	cursor: pointer;
}

.eh24-drawer-close [data-lucide] {
	width: 18px;
}

.eh24-drawer-search {
	display: flex;
	align-items: center;
	gap: 11px;
	margin: 18px 22px;
	padding: 0 14px;
	height: 46px;
	border: 1px solid #cfd7dc;
	background: #f8fafb;
}

.eh24-drawer-search [data-lucide] {
	width: 18px;
	color: #7d888f;
}

.eh24-drawer-search input {
	border: 0;
	outline: 0;
	background: none;
	width: 100%;
}

.eh24-drawer-nav {
	padding: 0 22px;
	flex: 1 1 auto;
}

.eh24-drawer-link {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 14px 0;
	border: 0;
	border-bottom: 1px solid var(--line);
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	text-align: left;
	cursor: pointer;
	color: inherit;
}

.eh24-drawer-link > [data-lucide] {
	width: 19px;
	color: var(--blue);
}

.eh24-drawer-link span {
	flex: 1 1 auto;
}

.eh24-drawer-link > [data-lucide]:last-child {
	width: 15px;
	color: #8a949b;
	transition: transform .22s ease;
}

.eh24-drawer-group.is-open .eh24-drawer-link > [data-lucide]:last-child {
	transform: rotate(180deg);
}

.eh24-drawer-sub {
	display: none;
	padding: 4px 0 14px 31px;
	border-bottom: 1px solid var(--line);
}

.eh24-drawer-group.is-open .eh24-drawer-sub {
	display: block;
}

.eh24-drawer-sub a {
	display: block;
	padding: 8px 0;
	font-size: 13px;
	color: #5d6871;
}

.eh24-drawer-foot {
	border-top: 1px solid var(--line);
	padding: 18px 22px 26px;
	display: grid;
	gap: 12px;
}

.eh24-drawer-foot a {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
}

.eh24-drawer-foot [data-lucide] {
	width: 18px;
	color: var(--blue);
}

/* --- Paginacja (odnosniki zamiast przyciskow) ---------------------------- */

.pagination a,
.pagination span {
	width: 42px;
	height: 42px;
	border: 1px solid var(--line);
	background: #fff;
	display: grid;
	place-items: center;
	font-size: 13px;
	font-weight: 700;
	transition: background .2s ease, color .2s ease;
}

.pagination a:hover {
	background: var(--soft);
	color: var(--blue);
}

.pagination .active,
.pagination .current {
	background: var(--ink);
	color: #fff;
	border-color: var(--ink);
}

.pagination .dots {
	border-color: transparent;
}

/* --- Tresc edytora ------------------------------------------------------- */

.eh24-page-content {
	max-width: 860px;
	font-size: 17px;
	color: #45525b;
}

.eh24-page-content > *:first-child {
	margin-top: 0;
}

.eh24-page-content h2 {
	font: 600 clamp(28px, 3vw, 40px)/1.1 'Space Grotesk', Manrope, Arial, sans-serif;
	letter-spacing: -.04em;
	color: var(--ink);
	margin: 46px 0 16px;
}

.eh24-page-content h3 {
	font: 600 24px/1.2 'Space Grotesk', Manrope, Arial, sans-serif;
	letter-spacing: -.03em;
	color: var(--ink);
	margin: 34px 0 12px;
}

.eh24-page-content h4 {
	font-size: 17px;
	color: var(--ink);
	margin: 26px 0 10px;
}

.eh24-page-content p,
.eh24-page-content li {
	line-height: 1.72;
}

.eh24-page-content ul,
.eh24-page-content ol {
	padding-left: 22px;
}

.eh24-page-content li {
	margin: 7px 0;
}

.eh24-page-content a:not(.btn) {
	color: var(--blue);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.eh24-page-content blockquote {
	border-left: 3px solid var(--blue);
	margin: 30px 0;
	padding: 6px 0 6px 24px;
	font-size: 19px;
	color: var(--ink);
}

.eh24-page-content img,
.eh24-page-content figure {
	max-width: 100%;
	height: auto;
}

.eh24-page-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.eh24-page-content th,
.eh24-page-content td {
	border-bottom: 1px solid var(--line);
	padding: 12px 10px;
	text-align: left;
}

.eh24-page-content hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 44px 0;
}

/* Uklad "flow": zwykle bloki w kontenerze, sekcje motywu na pelna szerokosc. */
.eh24-flow {
	max-width: none;
}

.eh24-flow > * {
	width: min(calc(100% - 64px), 860px);
	margin-left: auto;
	margin-right: auto;
}

.eh24-flow > section,
.eh24-flow > .alignfull,
.eh24-flow > .alignwide {
	width: 100%;
	max-width: none;
}

.eh24-flow > *:first-child {
	margin-top: 70px;
}

.eh24-flow > *:last-child {
	margin-bottom: 70px;
}

.eh24-flow > section:first-child,
.eh24-flow > section:last-child {
	margin-top: 0;
	margin-bottom: 0;
}

@media (max-width: 700px) {
	.eh24-flow > * {
		width: calc(100% - 28px);
	}
}

.alignleft {
	float: left;
	margin: 6px 26px 18px 0;
}

.alignright {
	float: right;
	margin: 6px 0 18px 26px;
}

.aligncenter {
	display: block;
	margin: 22px auto;
}

.wp-caption-text,
.wp-block-image figcaption {
	font-size: 12px;
	color: var(--muted);
	margin-top: 8px;
}

/* --- Blog ---------------------------------------------------------------- */

.eh24-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	background: #d9e0e4;
	border: 1px solid #d9e0e4;
}

.eh24-post-card {
	background: #fff;
	padding: 18px;
	display: flex;
	flex-direction: column;
}

.eh24-post-visual {
	display: grid;
	place-items: center;
	height: 210px;
	background: #f7f9fa;
	overflow: hidden;
	margin-bottom: 18px;
}

.eh24-post-visual img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.eh24-post-visual [data-lucide] {
	width: 34px;
	color: #b6c0c6;
}

.eh24-post-body h3 {
	font-size: 18px;
	line-height: 1.3;
	margin: 6px 0 10px;
}

.eh24-post-body p {
	font-size: 13px;
	color: var(--muted);
	margin: 0 0 16px;
}

.eh24-post-more {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 12px;
	font-weight: 800;
	color: var(--blue);
	margin-top: auto;
}

.eh24-post-more [data-lucide] {
	width: 15px;
}

.eh24-article {
	display: block;
}

.eh24-article-image {
	margin-bottom: 40px;
}

.eh24-article-image img {
	width: 100%;
	height: auto;
	display: block;
}

@media (max-width: 1000px) {
	.eh24-posts {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 620px) {
	.eh24-posts {
		grid-template-columns: 1fr;
	}
}

/* --- Stan pusty ---------------------------------------------------------- */

.eh24-empty {
	text-align: center;
	padding: 70px 24px;
	border: 1px solid var(--line);
	background: #fff;
}

.eh24-empty [data-lucide] {
	width: 42px;
	height: 42px;
	color: #b6c0c6;
}

.eh24-empty h2 {
	font: 600 30px/1.15 'Space Grotesk', Manrope, Arial, sans-serif;
	letter-spacing: -.035em;
	margin: 18px 0 10px;
}

.eh24-empty p {
	color: var(--muted);
	margin: 0 auto 26px;
	max-width: 460px;
}

/* --- Komentarze ---------------------------------------------------------- */

.eh24-comments-inner {
	max-width: 860px;
}

.eh24-comments-title {
	font: 600 28px 'Space Grotesk', Manrope, Arial, sans-serif;
	letter-spacing: -.035em;
	margin: 0 0 24px;
}

.comment-list,
.comment-list .children {
	list-style: none;
	padding: 0;
}

.comment-list .children {
	padding-left: 32px;
}

.comment-list li article,
.comment-list li .comment-body {
	border-bottom: 1px solid var(--line);
	padding: 22px 0;
}

.comment-form label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid #ccd5da;
	padding: 12px 13px;
	background: #fff;
	outline: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(0, 109, 255, .1);
}

.comment-form p {
	margin: 0 0 16px;
}

/* --- Powiekszenie zdjecia ------------------------------------------------ */

.eh24-lightbox {
	position: fixed;
	inset: 0;
	z-index: 120;
	background: rgba(8, 13, 17, .9);
	display: grid;
	place-items: center;
	padding: 30px;
	opacity: 0;
	transition: opacity .2s ease;
	cursor: zoom-out;
}

.eh24-lightbox.is-open {
	opacity: 1;
}

.eh24-lightbox img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.eh24-lightbox-close {
	position: absolute;
	right: 22px;
	top: 22px;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(255, 255, 255, .35);
	background: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
}

/* --- Widgety ------------------------------------------------------------- */

.filter-group.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
	font-size: 12px;
}

.filter-group.widget li {
	padding: 6px 0;
	color: #4f5b64;
}

/* --- Status formularzy zapytan ------------------------------------------ */

.form-status.is-error {
	background: #fdeceb;
	color: #8d2e1e;
}

.contact-sidebar h2 {
	font: 600 34px/1.08 'Space Grotesk', Manrope, Arial, sans-serif;
	letter-spacing: -.035em;
	margin: 13px 0 18px;
}

.contact-sidebar .eyebrow {
	margin-bottom: 4px;
}

/* --- Dolna belka stopki: dokumenty obok informacji o prawach --- */

.footer-bottom > span:first-child {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 18px;
}

.footer-bottom a + a {
	margin-left: 0;
}
