/* LexNexa R2.1 public content — deliberately scoped to release classes. */
.lexnexa-r21-page,
.lexnexa-r21-module__inner,
.lexnexa-r21-blog-index {
	max-width: 74rem;
	margin-right: auto;
	margin-left: auto;
}

.lexnexa-r21-page,
.lexnexa-r21-module {
	padding: clamp(1.5rem, 3vw, 3rem) 1rem;
}

.lexnexa-r21-module {
	border-top: 1px solid rgba(18, 18, 18, 0.12);
	background: #fff;
}

.lexnexa-r21-module h2,
.lexnexa-r21-page h2,
.lexnexa-r21-blog-index h2 {
	margin-top: 1.75rem;
	line-height: 1.25;
}

.lexnexa-r21-module h2:first-child,
.lexnexa-r21-page h2:first-child,
.lexnexa-r21-blog-index h2:first-child {
	margin-top: 0;
}

.lexnexa-r21-page p,
.lexnexa-r21-module p,
.lexnexa-r21-blog-index p,
.lexnexa-r21-page li,
.lexnexa-r21-module li,
.lexnexa-r21-blog-index li {
	font-size: 1.05rem;
	line-height: 1.72;
}

.lexnexa-r21-page a,
.lexnexa-r21-module a,
.lexnexa-r21-blog-index a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.15em;
}

.lexnexa-r21-page .wp-block-table,
.lexnexa-r21-module .wp-block-table {
	overflow-x: auto;
	margin: 1.5rem 0;
}

.lexnexa-r21-page table,
.lexnexa-r21-module table {
	width: 100%;
	border-collapse: collapse;
}

.lexnexa-r21-page th,
.lexnexa-r21-page td,
.lexnexa-r21-module th,
.lexnexa-r21-module td {
	padding: 0.75rem;
	border: 1px solid rgba(18, 18, 18, 0.18);
	vertical-align: top;
	text-align: left;
}

.lexnexa-r21-blog-index {
	padding: 0 1rem 2rem;
}

.lexnexa-r21-category-nav {
	max-width: 74rem;
	margin-right: auto;
	margin-left: auto;
	padding-top: clamp(1.25rem, 3vw, 2.5rem);
	padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.lexnexa-r21-category-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(1rem, 2vw, 1.5rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.lexnexa-r21-category-card {
	min-width: 0;
}

.lexnexa-r21-category-card__heading {
	display: flex;
	height: 100%;
	width: 100%;
	margin: 0;
}

.lexnexa-r21-category-grid a.blog-box {
	align-items: flex-end;
	justify-content: flex-start;
	position: relative;
	isolation: isolate;
	width: 100%;
	min-height: clamp(10.5rem, 18vw, 13.5rem);
	aspect-ratio: 16 / 10;
	margin: 0;
	overflow: hidden;
	padding: clamp(1.15rem, 2.5vw, 1.6rem);
	border: 1px solid rgba(186, 160, 97, 0.9) !important;
	box-shadow: 0 0.75rem 1.75rem rgba(18, 18, 18, 0.18);
	font-size: clamp(1.125rem, 2vw, 1.35rem);
	line-height: 1.25;
	text-align: left;
	text-decoration: none;
}

.lexnexa-r21-category-grid a.blog-box::after {
	position: absolute;
	z-index: 1;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(7, 9, 12, 0.84), rgba(7, 9, 12, 0.68)),
		linear-gradient(0deg, rgba(128, 104, 50, 0.22), rgba(128, 104, 50, 0.22));
	content: "";
}

.lexnexa-r21-category-card__media,
.lexnexa-r21-category-card__image {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.lexnexa-r21-category-card__media {
	z-index: 0;
}

.lexnexa-r21-category-card__image {
	object-fit: cover;
}

.lexnexa-r21-category-card__label {
	position: relative;
	z-index: 2;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.025em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.lexnexa-r21-category-grid a.blog-box:focus-visible {
	outline: 3px solid #fff;
	outline-offset: -7px;
	box-shadow:
		0 0 0 3px #806832,
		0 0.75rem 1.75rem rgba(18, 18, 18, 0.22);
}

@media (min-width: 40em) {
	.lexnexa-r21-category-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 64em) {
	.lexnexa-r21-category-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.lexnexa-r21-category-card__image {
		transition: transform 280ms ease;
	}

	.lexnexa-r21-category-grid a.blog-box:hover .lexnexa-r21-category-card__image {
		transform: scale(1.045);
	}
}

@media (max-width: 39.9375em) {
	.lexnexa-r21-page,
	.lexnexa-r21-module {
		padding-right: 0.75rem;
		padding-left: 0.75rem;
	}

	.lexnexa-r21-page th,
	.lexnexa-r21-page td,
	.lexnexa-r21-module th,
	.lexnexa-r21-module td {
		min-width: 12rem;
	}

	.lexnexa-r21-category-nav {
		padding-right: 0.25rem;
		padding-left: 0.25rem;
	}

	.lexnexa-r21-category-grid a.blog-box {
		min-height: 10.5rem;
	}
}

/* R241: verified existing portrait on the "O mnie" page. */
.page-id-1385 .posts__item__text {
	display: flow-root;
}

.lexnexa-expert-portrait {
	float: left;
	margin: 0 clamp(1.5rem, 4vw, 3.5rem) 1.75rem 0;
	max-width: 23rem;
	width: min(34vw, 23rem);
}

.lexnexa-expert-portrait__image {
	border: 1px solid rgba(186, 160, 97, .42);
	box-shadow: 0 .8rem 2.4rem rgba(0, 0, 0, .14);
	display: block;
	height: auto;
	width: 100%;
}

@media screen and (max-width: 39.9375em) {
	.lexnexa-expert-portrait {
		float: none;
		margin: 0 auto 1.5rem;
		max-width: 22rem;
		width: 100%;
	}
}
