/*
Theme Name: Inwestycje Hryniewicz (GeneratePress)
Theme URI: https://inwestycje.hryniewicz.pl
Description: Motyw potomny GeneratePress – zmiany w plikach, synchronizacja z projektu.
Author: Inwestycje Hryniewicz
Template: generatepress
Version: 1.0.41
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-inwestycje
*/

/* ========== Krok B: Kontener 1140px (nowoczesny 960px), mobile płynnie ========== */
.grid-container,
body .grid-container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 768px) {
	.grid-container,
	body .grid-container {
		width: 100%;
		padding-left: 20px;
		padding-right: 20px;
		box-sizing: border-box;
	}
}

/* ========== Krok C: Menu mobilne – hamburger wyśrodkowany, rozwijanie na pełną szerokość ========== */
@media (max-width: 768px) {
	.menu-toggle {
		display: block;
		width: 100%;
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}
	.main-navigation.toggled .main-nav,
	.main-navigation.toggled ul {
		width: 100%;
		left: 0;
		right: 0;
	}
	.main-navigation.toggled ul li {
		width: 100%;
	}
	.main-navigation.toggled ul ul {
		position: static;
		width: 100%;
		box-shadow: none;
	}
}

/* ========== Wariant „Brutalist Luxury” – nowy front IH.pl ========== */
/* Wrapper: jeden blok pod całą szerokością – stopka zawsze pod main, nie obok (flex GP). */
.ih-front-wrap {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 100%;
	flex: 1 1 100%;
	box-sizing: border-box;
}
.ih-front-main {
	background: #2d2d2d;
	color: #ffffff;
}

.ih-front-main a {
	text-decoration: none;
}

.ih-front-main .nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 60px;
	background: #2d2d2d;
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Logo: proporcję zachowujemy przy zoomie – bez spłaszczania (object-fit + max-height zamiast height:100%) */
.ih-front-main .nav-logo {
	flex-shrink: 0;
	line-height: 0;
	height: auto;
}
.ih-front-main .nav-logo a {
	display: inline-block;
	height: auto;
}
.ih-front-main .nav-logo img {
	display: block;
	height: auto;
	max-height: 40px;
	width: auto;
	max-width: min(280px, 35vw);
	object-fit: contain;
	object-position: left center;
}

.ih-front-main .nav-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid #dab663;
	border-radius: 0;
	cursor: pointer;
}

.ih-front-main .nav-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	margin: 0 auto;
	transition: transform 0.2s, opacity 0.2s;
}

.ih-front-main .nav.nav--open .nav-hamburger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.ih-front-main .nav.nav--open .nav-hamburger span:nth-child(2) {
	opacity: 0;
}
.ih-front-main .nav.nav--open .nav-hamburger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/*
 * Menu: przy pełnej szerokości jedna linia (nowrap). Gdy brak miejsca – albo całe linki
 * przechodzą do następnego wiersza (flex-wrap), albo w wąskim kontenerze włącza się
 * łamanie tekstu w odnośniku (@container).
 */
.ih-front-main .nav-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 8px;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	container-type: inline-size;
	container-name: ih-nav-menu;
}

.ih-front-main .nav-link {
	font-family: 'Inconsolata', monospace;
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	padding: 8px 16px;
	letter-spacing: 1px;
	cursor: pointer;
	transition: color 0.2s;
	white-space: nowrap;
	text-align: center;
	line-height: 1.3;
	box-sizing: border-box;
}

.ih-front-main .nav-link:hover {
	color: #dab663;
}

.ih-front-main .nav-label {
	font-size: 11px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #eee3cc;
	white-space: nowrap;
	text-align: center;
	line-height: 1.3;
}

.ih-front-main .nav-link.ih-wpsam-section-link {
	border: 1px solid transparent;
	border-radius: 2px;
	transition: color 0.2s, border-color 0.2s;
}
.ih-front-main .nav-link.ih-wpsam-section-link:hover,
.ih-front-main .nav-link.ih-wpsam-section-link.is-active {
	color: #dab663;
	border-color: #dab663;
}

/* Blok po prawej jak logo po lewej – zawsze przyklejony do prawej, nie zawija się z menu */
.ih-front-main .nav-actions {
	flex-shrink: 0;
	margin-left: auto;
	display: flex;
	align-items: center;
	line-height: 0;
}

/* Zaloguj/Wyloguj – styl „jak logo”: złoty akcent, obramowanie, bez ciężkiego tła */
.ih-front-main .nav-actions .btn-login {
	font-family: 'Inconsolata', monospace;
	font-size: 13px;
	font-weight: 600;
	color: #dab663;
	background: transparent;
	padding: 10px 18px;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid #dab663;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
	box-sizing: border-box;
}

/* Hover jak READ MORE: ciemniejsze tło #BB9B57 + biały tekst */
.ih-front-main .nav-actions .btn-login:hover {
	background: rgb(187, 155, 87);
	border-color: rgb(187, 155, 87);
	color: #fff;
}

.ih-front-main .subnav {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 10px 60px;
	background: #474849;
	border-bottom: 1px solid #474849;
}

.ih-front-main .subnav-label {
	font-family: 'Inconsolata', monospace;
	font-size: 11px;
	font-weight: 600;
	color: #eee3cc;
	letter-spacing: 2px;
	text-transform: uppercase;
}

.ih-front-main .subnav-divider {
	width: 1px;
	height: 16px;
	background: #2d2d2d;
}

.ih-front-main .subnav-link {
	font-family: 'Inconsolata', monospace;
	font-size: 12px;
	font-weight: 400;
	color: #eeece9;
	cursor: pointer;
	transition: color 0.2s;
}

.ih-front-main .subnav-link:hover {
	color: #dab663;
}

.ih-front-main .subnav-link.active {
	font-weight: 500;
	color: #dab663;
}

/* Hero: 960b1.jpg wypełnia cały pas pod menu aż do sekcji .offers (full bleed + cover) */
.ih-front-main .hero {
	position: relative;
	display: flex;
	align-items: center;
	gap: 60px;
	padding: 80px 60px;
	background: #2d2d2d;
	min-height: min(85vh, 920px);
	overflow: hidden;
}
/* .home: hero wyżej o 6px – zdjęcie (inset 0 w .hero-image) wypełnia szczelinę; overflow hidden obcina nadmiar */
body.home .ih-front-main .hero {
	overflow: hidden;
	margin-top: -6px;
	padding-top: 86px;
}
body.home .ih-front-main .hero-image {
	inset: 0;
	top: 0;
	height: 100%;
}
/* Czytelność tekstu: gradient od lewej nad zdjęciem */
.ih-front-main .hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to right,
		rgba(45, 45, 45, 0.94) 0%,
		rgba(45, 45, 45, 0.75) 38%,
		rgba(45, 45, 45, 0.35) 58%,
		transparent 78%
	);
}
.ih-front-main .hero-text {
	position: relative;
	z-index: 2;
	flex: 0 1 auto;
	max-width: 640px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.ih-front-main .hero-label {
	font-family: 'Inconsolata', monospace;
	font-size: 12px;
	font-weight: 600;
	color: #dab663;
	letter-spacing: 2px;
}

.ih-front-main .hero-title {
	font-family: 'Inconsolata', monospace;
	font-size: 50px;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
	text-transform: capitalize;
	letter-spacing: -1px;
}

.ih-front-main .hero-sub {
	font-size: 18px;
	font-weight: 400;
	color: #eeece9;
	line-height: 1.6;
}

.ih-front-main .btn-cta {
	display: inline-block;
	font-family: 'Inconsolata', monospace;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	background: #dab663;
	padding: 13px 40px;
	letter-spacing: 1px;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
	align-self: flex-start;
	text-transform: uppercase;
}

.ih-front-main .hero-quote-author {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.ih-front-main .btn-cta:hover {
	background: rgb(187, 155, 87);
	color: #fff;
	box-shadow: 0 15px 25px -7px rgba(0, 0, 0, 0.1);
}

/* Warstwa zdjęcia – pod tekstem i gradientem, na całą powierzchnię .hero */
.ih-front-main .hero-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
}

.ih-front-main .hero-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
}

.ih-front-main .offers {
	padding: 80px 60px;
	background: #2d2d2d;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

.ih-front-main .offers-label {
	font-family: 'Inconsolata', monospace;
	font-size: 12px;
	font-weight: 600;
	color: #dab663;
	letter-spacing: 2px;
}

.ih-front-main .cards-row {
	display: flex;
	gap: 24px;
}

.ih-front-main .card {
	flex: 1;
	border: 1px solid #474849;
	display: flex;
	flex-direction: column;
	background: transparent;
}

.ih-front-main .card-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.ih-front-main .card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ih-front-main .card-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.ih-front-main .card-num {
	font-family: 'Inconsolata', monospace;
	font-size: 36px;
	font-weight: 700;
	color: #dab663;
}

.ih-front-main .card-title {
	font-family: 'Inconsolata', monospace;
	font-size: 22px;
	font-weight: 600;
	color: #ffffff;
}

.ih-front-main .card-desc {
	font-size: 14px;
	font-weight: 400;
	color: #eeece9;
	line-height: 1.6;
}

.ih-front-main .btn-outline {
	display: inline-block;
	font-family: 'Inconsolata', monospace;
	font-size: 14px;
	font-weight: 600;
	color: #dab663;
	border: 2px solid #dab663;
	padding: 14px 32px;
	letter-spacing: 1px;
	background: transparent;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
	align-self: flex-start;
	text-transform: uppercase;
}

.ih-front-main .btn-outline:hover {
	background: #dab663;
	color: #2d2d2d;
}

@media (max-width: 900px) {
	/* Menu → hamburger: ukryj linki, pokaż przycisk; po kliknięciu rozwiń w kolumnie */
	.ih-front-main .nav-hamburger {
		display: flex;
	}
	.ih-front-main .nav-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		background: #2d2d2d;
		padding: 16px 24px 24px;
		gap: 0;
		border-top: 1px solid #474849;
	}
	.ih-front-main .nav.nav--open .nav-menu {
		display: flex;
	}
	.ih-front-main .nav .nav-link {
		display: block;
		width: 100%;
		padding: 12px 16px;
		text-align: left;
		border-bottom: 1px solid #474849;
	}
	/* Przycisk zaloguj/wyloguj zostaje w .nav-actions po prawej – nie w rozwijanym menu */
	.ih-front-main .nav-actions {
		margin-left: auto;
		order: 2;
	}
	.ih-front-main .nav-hamburger {
		order: 1;
		margin-left: auto;
	}
	.ih-front-main .nav-logo {
		order: 0;
	}

	.ih-front-main .nav {
		position: relative;
		flex-wrap: wrap;
	}

	.ih-front-main .hero {
		flex-direction: column;
		align-items: stretch;
		padding: 48px 24px 56px;
		min-height: min(75vh, 640px);
	}
	/* .home: jak desktop – podciągnięty hero, bez osobnego paska */
	body.home .ih-front-main .hero {
		overflow: hidden;
		margin-top: -4px;
		padding-top: 52px;
	}
	body.home .ih-front-main .hero-image {
		inset: 0;
		top: 0;
		height: 100%;
	}
	/* Na mobile mocniejszy gradient – tekst często nad jasną częścią zdjęcia */
	.ih-front-main .hero::before {
		background: linear-gradient(
			to bottom,
			rgba(45, 45, 45, 0.92) 0%,
			rgba(45, 45, 45, 0.55) 45%,
			rgba(45, 45, 45, 0.25) 100%
		);
	}
	.ih-front-main .hero-text {
		max-width: none;
	}

	.ih-front-main .hero-title {
		font-size: 36px;
	}

	.ih-front-main .cards-row {
		flex-direction: column;
	}

	.ih-front-main .nav,
	.ih-front-main .subnav,
	.ih-front-main .offers {
		padding-left: 24px;
		padding-right: 24px;
	}

	.ih-front-main .subnav {
		flex-wrap: wrap;
	}
}

/* Ukryj domyślny nagłówek i stopkę GeneratePress na stronie głównej,
   żeby widoczny był tylko layout z wariantu „Brutalist Luxury”. */
.home .site-header,
.home .footer-widgets-container,
.home .site-info {
	display: none;
}

/* Stopka GP ukryta na całej witrynie – jedna wspólna stopka IH z wp_footer (ih-site-footer). */
.ih-global-nav .site-footer {
	display: none !important;
}

/* Pod naszą stopką get_footer() dokłada stopkę GP – często zostaje jaśniejszy pas (wrapper/padding).
   Na stronie głównej już wcześniej – poniżej dodatkowe zerowanie jeśli coś przebija. */
.home .site-footer,
.home footer.site-footer,
.home .inside-site-info,
.home .site-info-footer,
.home .footer-bar,
.home .gp-footer,
.home .inside-footer-widgets {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	min-height: 0 !important;
	max-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
	border: none !important;
}
.home .site-footer {
	position: absolute;
	left: -9999px;
	width: 1px;
}
/* Żeby pod .ih-front-footer nie było „pasa” – koniec strony = koniec ciemnej stopki */
.home #page,
.home .site,
.home .site-content {
	padding-bottom: 0 !important;
	margin-bottom: 0 !important;
}
.home .ih-front-footer {
	margin-bottom: 0;
	padding-bottom: 36px;
}

/* Na podstronach – brak dodatkowego „pasa” pod credits (site-info często ma tło jak reszta stopki). */
.ih-global-nav .site-footer {
	margin-bottom: 0;
	padding-bottom: 0;
}
.ih-global-nav .site-info {
	margin-bottom: 0;
	padding-bottom: 16px;
}

/* Na stronie głównej kontent ma być pełnej szerokości (bez kontenerów GP). */
.home .site-content,
.home .content-area,
.home main#main,
.home .inside-article {
	max-width: 100%;
	margin: 0;
	padding: 0;
}
/* Jeśli .inside-article też jest flexem – stopka ma być pod main, nie obok. */
.home .inside-article {
	display: flex;
	flex-direction: column;
	align-items: stretch;
}

/* Usuń białe marginesy wokół całej strony głównej – pełna szerokość layoutu. */
html,
body {
	background: #2d2d2d;
}
/* Stały „gutter” pod pasek przewijania – mniej skoku szerokości przy przejściu główna ↔ podstrony */
html {
	scrollbar-gutter: stable;
}

.home .site,
.home #page,
.home .inside-site-container {
	max-width: 100%;
	margin: 0;
	box-shadow: none;
	background: transparent;
}

/* Stopka firmowa na stronie głównej (.site-info jest ukryte – własny blok pod main).
   GP często ustawia .site-content/.content-area na flex w rzędzie (sidebar) – wtedy
   footer ląduje „z boku”. Wymuszamy kolumnę i pełną szerokość, żeby stopka była na końcu strony. */
.home .site-content,
.home .content-area {
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
}
.home main#main {
	flex: 0 0 auto;
	width: 100%;
	max-width: 100%;
}
.ih-front-footer,
.home footer.ih-front-footer {
	width: 100%;
	max-width: 100%;
	flex: 0 0 auto;
	order: 10;
	box-sizing: border-box;
}
.ih-front-footer {
	background: #1a1a1a;
	border-top: 1px solid rgba(218, 182, 99, 0.25);
	padding: 28px 24px 36px;
	margin-top: 0;
}
.ih-front-footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	text-align: center;
}
.ih-front-footer-text {
	margin: 0;
	font-family: 'Inconsolata', monospace;
	font-size: 13px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.75);
}

/* Stopka z wp_footer – pełna szerokość, na końcu strony (poza #page czasem węższa bez tego). */
.ih-site-footer.ih-front-footer {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

/* Odstęp pod fixed menu – bez div-spacera w stopce (spacer w footerze wyglądał jak pas pod stopką). */
body.ih-global-nav {
	padding-top: 72px;
	box-sizing: border-box;
}

/*
 * Strona główna – bez osobnego „paska”: mniejszy padding-top + podciągnięty .hero (margin ujemny),
 * żeby blok hero (zdjęcie cover) fizycznie wszedł pod dół fixed menu – bez drugiej warstwy ::before.
 */
body.home.ih-global-nav {
	padding-top: 66px;
}

/*
 * Fixed wrap: line-height 0 usuwa ewentualną „sztuczną” linię pod nav (whitespace/strut między </div> a <nav> w DOM).
 * font-size 0 na wrapie – przywracamy na .nav, żeby dzieci dziedziczyły poprawnie z .nav-link itd.
 */
#ih-global-nav-wrap.ih-inner-nav-wrap {
	line-height: 0;
	font-size: 0;
}
#ih-global-nav-wrap .nav,
#ih-global-nav-wrap nav.ih-main-nav {
	line-height: normal;
	font-size: 14px; /* baza; linki mają własne w regułach .nav-link */
}

/* ========== Inner shell + global nav – ukryj nagłówek GP (menu IH jest fixed z functions.php) ========== */
.ih-global-nav .site-header,
.ih-global-nav .main-navigation,
.ih-global-nav .site-branding,
.ih-inner-shell .site-header,
.ih-inner-shell .main-navigation,
.ih-inner-shell .site-branding {
	display: none !important;
}

.ih-inner-nav-wrap {
	background: #2d2d2d;
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	box-sizing: border-box;
}

/* Ta sama nawigacja co .ih-front-main .nav – podwójny selektor żeby nie kopiować setek linii */
.ih-inner-nav-wrap .nav,
.ih-inner-nav-wrap nav.ih-main-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 60px;
	background: #2d2d2d;
}

/* Logo wewnętrzne – jak wyżej: brak spłaszczania przy powiększaniu */
.ih-inner-nav-wrap .nav-logo {
	flex-shrink: 0;
	line-height: 0;
	height: auto;
}
.ih-inner-nav-wrap .nav-logo a {
	display: inline-block;
	height: auto;
}
.ih-inner-nav-wrap .nav-logo img {
	display: block;
	height: auto;
	max-height: 40px;
	width: auto;
	max-width: min(280px, 35vw);
	object-fit: contain;
	object-position: left center;
}

.ih-inner-nav-wrap .nav-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	background: transparent;
	border: 1px solid #dab663;
	border-radius: 0;
	cursor: pointer;
}
.ih-inner-nav-wrap .nav-hamburger span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	margin: 0 auto;
	transition: transform 0.2s, opacity 0.2s;
}
.ih-inner-nav-wrap .nav.nav--open .nav-hamburger span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.ih-inner-nav-wrap .nav.nav--open .nav-hamburger span:nth-child(2) {
	opacity: 0;
}
.ih-inner-nav-wrap .nav.nav--open .nav-hamburger span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.ih-inner-nav-wrap .nav-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px 8px;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
	container-type: inline-size;
	container-name: ih-nav-menu;
}
.ih-inner-nav-wrap .nav-link {
	font-family: 'Inconsolata', monospace;
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	padding: 8px 16px;
	letter-spacing: 1px;
	text-decoration: none;
	transition: color 0.2s;
	white-space: nowrap;
	text-align: center;
	line-height: 1.3;
	box-sizing: border-box;
}
.ih-inner-nav-wrap .nav-link:hover {
	color: #dab663;
}
.ih-inner-nav-wrap .nav-label {
	color: #dab663;
	cursor: default;
	white-space: nowrap;
	text-align: center;
	line-height: 1.3;
}

/* Dane wspólnika – ramka jak przyciski: złota na hover, złota utrzymana na aktywnej sekcji (hash w URL) */
.ih-inner-nav-wrap .nav-link.ih-wpsam-section-link {
	border: 1px solid transparent;
	border-radius: 2px;
	transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.ih-inner-nav-wrap .nav-link.ih-wpsam-section-link:hover {
	color: #dab663;
	border-color: #dab663;
}
.ih-inner-nav-wrap .nav-link.ih-wpsam-section-link.is-active {
	color: #dab663;
	border-color: #dab663;
}

/* Prawy blok jak logo – zawsze po prawej, nie wchodzi w zawijanie .nav-menu */
.ih-inner-nav-wrap .nav-actions {
	flex-shrink: 0;
	margin-left: auto;
	display: flex;
	align-items: center;
	line-height: 0;
}

/* Gdy środkowa kolumna menu jest wąska – dopiero wtedy łamanie tekstu w linku (nie na pełnej szerokości). */
/* Próg – tylko gdy kolumna menu jest naprawdę ciasna (dostosuj po podglądzie). */
@container ih-nav-menu (max-width: 50rem) {
	.ih-inner-nav-wrap .nav-menu .nav-link,
	.ih-inner-nav-wrap .nav-menu .nav-label,
	.ih-front-main .nav-menu .nav-link,
	.ih-front-main .nav-menu .nav-label {
		white-space: normal;
	}
}

.ih-inner-nav-wrap .nav-actions .btn-login {
	font-family: 'Inconsolata', monospace;
	font-size: 13px;
	font-weight: 600;
	color: #dab663;
	background: transparent;
	padding: 10px 18px;
	text-decoration: none;
	letter-spacing: 2px;
	text-transform: uppercase;
	border: 1px solid #dab663;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
	box-sizing: border-box;
}
.ih-inner-nav-wrap .nav-actions .btn-login:hover {
	background: rgb(187, 155, 87);
	border-color: rgb(187, 155, 87);
	color: #fff;
}

/* Treść strony – na podstronach z papierowym tłem nie wymuszamy białego (nadpisuje blok niżej). */
.ih-inner-shell .site-content,
.ih-inner-shell .content-area {
	background: transparent;
}
.ih-inner-shell .inside-article {
	background: transparent;
	padding: 24px 32px;
	box-sizing: border-box;
}

/* ========== Layout jak startertemplatecloud.com/g41 – pełna szerokość, bez szarych marginesów, „papierowe” tło ========== */
/* Strona główna (.home) zostaje ciemna – poniżej tylko podstrony + wspólne elementy poza .home */

/*
 * Overlay jak Kadence Row Layout: <div class="kt-row-layout-overlay kt-row-overlay-normal">
 * W Kadence (style-blocks-rowlayout.css): position absolute, opacity .3, 100% w/h, z-index 0.
 * U nas fixed na cały viewport + własne tło (faktura) – treść nad nim przez z-index na #page.
 */
body.ih-global-nav:not(.home) #page,
body.ih-global-nav:not(.home) .site {
	position: relative;
	z-index: 1;
}

/*
 * Overlay jak Kadence – bez JPG z zewnętrznego linku (404 na startertemplatecloud).
 * Własny JPG: wgraj do Media i ustaw URL w ih-image-urls.php → ih_get_paper_texture_url()
 * – wtedy functions.php dopisze background-image inline.
 * Domyślnie: SVG grain (działa bez plików).
 */
.ih-paper-overlay.kt-row-layout-overlay,
div.ih-paper-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 0 !important;
	pointer-events: none !important;
	background-color: #eeece9;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 256px 256px;
	background-position: 0 0;
	opacity: 0.5;
	mix-blend-mode: multiply;
}

@supports not (mix-blend-mode: multiply) {
	.ih-paper-overlay.kt-row-layout-overlay,
	div.ih-paper-overlay {
		opacity: 0.4;
		mix-blend-mode: normal;
	}
}

/* Tło pod overlay – jednolity #eeece9 (palette8 g41); tekstura jest na .ih-paper-overlay (JPG) */
body.ih-global-nav:not(.home),
body.ih-global-nav:not(.home) #page,
body.ih-global-nav:not(.home) .site {
	background-color: #eeece9;
	background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 50%);
	background-attachment: fixed;
}

/* Pełna szerokość – obcinamy szare/ciemne marginesy GP */
body.ih-global-nav:not(.home) .site,
body.ih-global-nav:not(.home) #page,
body.ih-global-nav:not(.home) .site-content,
body.ih-global-nav:not(.home) .content-area,
body.ih-global-nav:not(.home) .inside-site-container {
	max-width: 100% !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-shadow: none !important;
}

body.ih-global-nav:not(.home) .site-content,
body.ih-global-nav:not(.home) .content-area {
	background: transparent;
	padding-left: 0;
	padding-right: 0;
}

/* ========== Bez prawego paska (Szukaj, Recent Posts…) – tylko treść na pełną szerokość ========== */
body.ih-global-nav:not(.home) .widget-area,
body.ih-global-nav:not(.home) .sidebar,
body.ih-global-nav:not(.home) aside.widget-area,
body.ih-global-nav:not(.home) #right-sidebar,
body.ih-global-nav:not(.home) .site-content .widget-area,
body.ih-global-nav:not(.home) .content-area .widget-area {
	display: none !important;
	width: 0 !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

/* Jedna kolumna – treść na całą szerokość po ukryciu sidebara */
body.ih-global-nav:not(.home) .site-content,
body.ih-global-nav:not(.home) .content-area {
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
}
body.ih-global-nav:not(.home) .content-area,
body.ih-global-nav:not(.home) main#main {
	flex: 1 1 100% !important;
	max-width: 100% !important;
}

/* ========== Bez białych „pudełek” – tekst i tabele bezpośrednio na papierowym tle ========== */
body.ih-global-nav:not(.home) .inside-article,
body.ih-global-nav:not(.home) .entry-content,
body.ih-global-nav:not(.home) .one-container .site-content > *,
body.ih-global-nav:not(.home) .page-content,
body.ih-global-nav:not(.home) article {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

body.ih-global-nav:not(.home) .inside-article {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 32px 40px 48px;
	box-sizing: border-box;
}

/*
 * Typografia treści na podstronach: 17px, interlinia 1.6, kolor #2d2d2d.
 * Bez max-width na akapitach – pełna szerokość kontenera (42em było za wąsko).
 */
body.ih-global-nav:not(.home) .inside-article .entry-content {
	font-size: 17px;
	line-height: 1.6;
	color: #2d2d2d;
}
body.ih-global-nav:not(.home) .inside-article .entry-content h2,
body.ih-global-nav:not(.home) .inside-article .entry-content h3,
body.ih-global-nav:not(.home) .inside-article .entry-content h4 {
	line-height: 1.35;
	margin-top: 1.25em;
	margin-bottom: 0.5em;
	color: #2d2d2d;
}

/* wpsam / jQuery UI tabs – bez białego tła pod tabelami */
body.ih-global-nav:not(.home) .ui-tabs,
body.ih-global-nav:not(.home) .ui-tabs .ui-tabs-panel,
body.ih-global-nav:not(.home) .ui-widget-content,
body.ih-global-nav:not(.home) .ui-widget-header,
body.ih-global-nav:not(.home) .inside-article table,
body.ih-global-nav:not(.home) .inside-article .wpsam-szn-wrap,
body.ih-global-nav:not(.home) .inside-article div[class*="wpsam"],
body.ih-global-nav:not(.home) .entry-content table {
	background: transparent !important;
	background-color: transparent !important;
}

/* Komórki tabel – czytelność bez „kartki”. Nagłówki .wpsam-transactions-table nadpisane niżej (#5a5a5a + biały tekst). */
body.ih-global-nav:not(.home) .inside-article table th,
body.ih-global-nav:not(.home) .inside-article table td {
	background: transparent !important;
}

/* Strona Dane wspólnika – bez duplikatu tytułu (belka = nawigacja sekcji) */
body.page-dane-wspolnika .entry-header,
body.page-dane-wspolnika header.entry-header,
body.page-dane-wspolnika .page-header,
body.page-dane-wspolnika .inside-page-header {
	display: none !important;
}

/*
 * Wszystkie panele Dane wspólnika – bez powtórki tytułu z menu.
 * Stary mustache na serwerze mógł zostawiać h3 w tab-4/tab-3/tab-statystyki – ukrywamy bezpośrednie h3 w .wpsam-panel.
 */
body.page-dane-wspolnika .wpsam-associate-panels .wpsam-panel > h3 {
	display: none !important;
}

/* „Moje umowy” – tytuł wewnątrz .wpsam-moje-umowy (nie bezpośrednie dziecko panelu) */
body.page-dane-wspolnika #tab-6 .wpsam-moje-umowy-title {
	display: none !important;
}

/* Tabela Moje umowy – kolumna ID tylko przy nowym markup (data-cols="6" / .wpsam-umowy-col-id) */
body.page-dane-wspolnika .wpsam-moje-umowy .wpsam-umowy-table[data-cols="6"] .wpsam-umowy-col-id {
	display: table-cell !important;
	min-width: 72px;
	width: 80px;
	text-align: right;
}

/* Shortcode .wpsam-moje-umowy ma inline margin: 20px 0 – bez h3 treść zaczyna się niżej niż w Bezpieczeństwie */
body.page-dane-wspolnika #tab-6 .wpsam-moje-umowy {
	margin-top: 0 !important;
}
body.page-dane-wspolnika #tab-6 .wpsam-moje-umowy .wpsam-instructions:first-of-type {
	margin-top: 0;
}

/* Bezpieczeństwo – h3 wewnątrz .wpsam-bezpieczenstwo */
body.page-dane-wspolnika #tab-7 .wpsam-bezpieczenstwo > h3 {
	display: none !important;
}
body.page-dane-wspolnika #tab-7 .wpsam-bezpieczenstwo {
	margin-top: 0;
	padding-top: 0;
}

/* Treść bliżej góry – mniejszy padding u góry (belka już oddziela) */
body.page-dane-wspolnika .inside-article,
body.page-dane-wspolnika .inside-article .entry-content {
	padding-top: 12px !important;
	margin-top: 0 !important;
}

body.page-dane-wspolnika .associate_summary .content,
body.page-dane-wspolnika #wpsam-associate-panels {
	margin-top: 0;
	padding-top: 0;
}

/* Szerokość treści – bez sztucznego zwężenia jeśli sidebar zniknął */
body.ih-global-nav:not(.home) .entry-content,
body.ih-global-nav:not(.home) .inside-article .entry-header,
body.ih-global-nav:not(.home) .inside-article .page-content {
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
}

body.ih-global-nav:not(.home) .inside-article .entry-content .wpsam-szn-wrap,
body.ih-global-nav:not(.home) .inside-article table {
	max-width: 100%;
}

/* ========== Moje transakcje – przełącznik w toku / rozliczone (hash w URL) ========== */
body.page-dane-wspolnika .associate_summary .ih-transakcje-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 12px; /* przerwa między przyciskami – nie są już „sklejone” */
	margin-bottom: 14px;
	border: none;
	background: transparent;
	box-sizing: border-box;
}
body.page-dane-wspolnika .associate_summary .ih-transakcje-switch-btn {
	flex: 1 1 auto;
	min-width: 0;
	text-align: center;
	padding: 12px 16px;
	font-family: 'Inconsolata', monospace;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #2d2d2d;
	text-decoration: none !important;
	border: 1px solid #d0ccc4;
	background: #faf9f7;
	box-sizing: border-box;
	border-radius: 4px;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
body.page-dane-wspolnika .associate_summary .ih-transakcje-switch-btn:hover {
	background: rgba(218, 182, 99, 0.2);
	color: #2d2d2d;
}
body.page-dane-wspolnika .associate_summary .ih-transakcje-switch-btn.is-active {
	background: rgb(218, 182, 99);
	color: #2d2d2d;
	box-shadow: inset 0 0 0 2px rgb(187, 155, 87);
}

/* ========== Tabele transakcji (Dane wspólnika) – pełna szerokość, wyśrodkowanie w pionie, czytelny nagłówek ========== */
body.page-dane-wspolnika .associate_summary .transaction-filters {
	display: flex;
	width: 100%;
	box-sizing: border-box;
	gap: 10px;
	margin-bottom: 12px;
	flex-wrap: wrap;
	align-items: stretch;
}
/* Pole szukaj + X czyszczący na końcu */
body.page-dane-wspolnika .associate_summary .transaction-filter-input-wrap {
	display: flex;
	flex: 1 1 auto;
	min-width: 0;
	align-items: stretch;
	border: 1px solid #ccc;
	box-sizing: border-box;
	background: #fff;
}
body.page-dane-wspolnika .associate_summary .transaction-filter-input-wrap .transaction-filter-input {
	border: none !important;
	flex: 1 1 auto;
	min-width: 0;
}
body.page-dane-wspolnika .associate_summary .ih-filter-clear {
	flex: 0 0 40px;
	width: 40px;
	min-width: 40px;
	border: none;
	border-left: 1px solid #e0ddd6;
	background: #f5f3ef;
	color: #5a5a5a;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}
body.page-dane-wspolnika .associate_summary .ih-filter-clear:hover {
	background: rgb(218, 182, 99);
	color: #2d2d2d;
}
body.page-dane-wspolnika .associate_summary .transaction-filter-input {
	box-sizing: border-box;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 0;
	font-size: 15px;
}
/* Pole wyszukiwania – węższe, żeby zmieścić przycisk CSV po prawej */
body.page-dane-wspolnika .associate_summary .transaction-filter-search {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 100%;
}
/* Przycisk CSV – kolorystyka jak Moje umowy / g41 */
body.page-dane-wspolnika .associate_summary .ih-btn-transaction-csv {
	flex: 0 0 auto;
	align-self: center;
	white-space: nowrap;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 10px 18px !important;
	min-height: 44px;
	line-height: 1.2 !important;
	font-family: 'Inconsolata', monospace !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	cursor: pointer;
	text-decoration: none !important;
	border: none !important;
	border-radius: 0 !important;
	background: rgb(218, 182, 99) !important;
	background-color: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	transition: background 0.2s ease, color 0.2s ease;
}
body.page-dane-wspolnika .associate_summary .ih-btn-transaction-csv:hover {
	background: rgb(187, 155, 87) !important;
	background-color: rgb(187, 155, 87) !important;
	color: #fff !important;
}

body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table,
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table {
	width: 100%;
	border-collapse: collapse;
	/* auto = kolumny wg treści; fixed + wąskie % obcinało nagłówki */
	table-layout: auto;
	margin: 0 0 1em;
	box-sizing: border-box;
}
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table th,
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table td,
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table th,
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table td {
	vertical-align: middle !important;
	padding: 12px 14px;
	border: 1px solid #d0ccc4;
	text-align: left;
	word-wrap: break-word;
	overflow-wrap: break-word;
	overflow: visible;
}
/* Nagłówki: jaśniejsze tło #5a5a5a, biały tekst; !important wygrywa z transparent */
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table th,
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table th {
	background: #5a5a5a !important;
	color: #fff !important;
	font-weight: 600;
	font-size: 13px;
	line-height: 1.5;
	padding-top: 14px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
/* Druga kolumna (Nieruchomość) – szerzej = mniej łamania; bez max-width żeby wykorzystać miejsce */
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--active th:nth-child(2),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--active td:nth-child(2),
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table--active th:nth-child(2),
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table--active td:nth-child(2) {
	min-width: 22rem;
	width: 38%;
}
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--finished th:nth-child(2),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--finished td:nth-child(2),
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table--finished th:nth-child(2),
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table--finished td:nth-child(2) {
	min-width: 24rem;
	width: 45%;
}
/* Wiersze danych: komórki obok wielolinijkowej komórki wyśrodkowane w pionie względem wiersza */
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table tbody tr.transaction-row td,
body.ih-global-nav:not(.home) .associate_summary table.wpsam-transactions-table tbody tr.transaction-row td {
	vertical-align: middle !important;
}
/* Kolumny numeryczne / ID – wyrównanie do prawej opcjonalnie w 1. i 3. kolumnie tab-active */
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--active th:nth-child(1),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--active td:nth-child(1),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--active th:nth-child(3),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--active td:nth-child(3),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--finished th:nth-child(1),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--finished td:nth-child(1),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--finished th:nth-child(3),
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table--finished td:nth-child(3) {
	text-align: right;
}
body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table .transaction-summary-row td {
	background: rgba(0, 0, 0, 0.04);
	font-weight: 600;
}

/* ========== Statystyki – kafelki styl g41 (beż, większa czcionka, akcent złoto-pomarańcz) ========== */
/* Kolory zbliżone do załącznika g41: tło krem/beż, tekst ciemny, akcent przy kafelku */
body.page-dane-wspolnika #tab-statystyki .ih-stats-g41,
body.ih-inner-shell #tab-statystyki .ih-stats-g41 {
	margin-top: 0;
	margin-bottom: 0.5rem;
}

body.page-dane-wspolnika #tab-statystyki .ih-stats-g41,
body.ih-inner-shell #tab-statystyki .ih-stats-g41 {
	/* Siatka reaguje na realną szerokość panelu (zoom / wąski content) zamiast tylko viewport */
	container-type: inline-size;
	container-name: ih-stats;
}

/*
 * Statystyki: domyślnie 4 kolumny (2 rzędy). Przy powiększeniu ~200% – 2 kolumny × 4 rzędy.
 * Container query patrzy na szerokość panelu (.ih-stats-g41), nie tylko viewport – zoom działa stabilniej.
 */
body.page-dane-wspolnika #tab-statystyki .ih-stats-tiles,
body.ih-inner-shell #tab-statystyki .ih-stats-tiles,
body.page-dane-wspolnika #tab-statystyki #ih-stats-tiles-root,
body.ih-inner-shell #tab-statystyki #ih-stats-tiles-root {
	display: grid !important;
	gap: 1.25rem;
	margin-bottom: 1.5rem;
	align-items: stretch;
	grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

/* Panel węższy niż ~1120px → 2 kolumny (typowo po zoomie 200% lub wąski content) */
@container ih-stats (max-width: 1120px) {
	body.page-dane-wspolnika #tab-statystyki #ih-stats-tiles-root,
	body.ih-inner-shell #tab-statystyki #ih-stats-tiles-root,
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tiles,
	body.ih-inner-shell #tab-statystyki .ih-stats-tiles {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

/* Fallback bez container queries – wyższy próg niż 900px, żeby 200% zoom częściej wchodził w 2 kolumny */
@media (max-width: 1120px) {
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tiles,
	body.ih-inner-shell #tab-statystyki .ih-stats-tiles,
	body.page-dane-wspolnika #tab-statystyki #ih-stats-tiles-root,
	body.ih-inner-shell #tab-statystyki #ih-stats-tiles-root {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 480px) {
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tiles,
	body.ih-inner-shell #tab-statystyki .ih-stats-tiles,
	body.page-dane-wspolnika #tab-statystyki #ih-stats-tiles-root,
	body.ih-inner-shell #tab-statystyki #ih-stats-tiles-root {
		grid-template-columns: 1fr !important;
	}
}

body.page-dane-wspolnika #tab-statystyki .ih-stats-tile,
body.ih-inner-shell #tab-statystyki .ih-stats-tile {
	min-width: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.75rem 1.5rem 1.5rem;
	box-sizing: border-box;
	background: #f5f0e8;
	border: 1px solid #e5dfd2;
	border-left: 4px solid #d4a84f;
	border-radius: 2px;
	color: #2c2c2c;
}

body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-label,
body.ih-inner-shell #tab-statystyki .ih-stats-tile-label {
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #5a5346;
	line-height: 1.35;
	margin-bottom: 0.65rem;
	/* Długie etykiety nie rozpychają kafelka w nieskończoność */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	word-break: break-word;
}

body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-value,
body.ih-inner-shell #tab-statystyki .ih-stats-tile-value {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.25;
	color: #2c2c2c;
	margin-bottom: 0.5rem;
}

body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-meta,
body.ih-inner-shell #tab-statystyki .ih-stats-tile-meta {
	font-size: 0.95rem;
	line-height: 1.45;
	color: #4a453c;
	word-break: break-word;
	overflow-wrap: anywhere;
	/* Max 2 linie – długi tekst (np. nazwa transakcji) nie wydłuża kafelka */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	/* Przy równej wysokości rzędu – meta przy dolnej krawędzi kafelka */
	margin-top: auto;
	padding-top: 0.35rem;
}

body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-meta a,
body.ih-inner-shell #tab-statystyki .ih-stats-tile-meta a {
	color: #8a6d2e;
	text-decoration: underline;
}
body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-meta a:hover,
body.ih-inner-shell #tab-statystyki .ih-stats-tile-meta a:hover {
	color: #5a4a22;
}

@media (min-width: 900px) {
	/* Kolumny 3 lub 4 już ustawione wyżej (800px / 1100px) – tu tylko padding/czcionki */
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tile,
	body.ih-inner-shell #tab-statystyki .ih-stats-tile {
		padding: 1.75rem 2rem 1.75rem 1.65rem;
	}
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-value,
	body.ih-inner-shell #tab-statystyki .ih-stats-tile-value {
		font-size: 2rem;
	}
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-label,
	body.ih-inner-shell #tab-statystyki .ih-stats-tile-label {
		font-size: 0.85rem;
	}
	body.page-dane-wspolnika #tab-statystyki .ih-stats-tile-meta,
	body.ih-inner-shell #tab-statystyki .ih-stats-tile-meta {
		font-size: 1rem;
	}
}

/* ========== TEST: tabele → karty (wymaga ih-wpsam-tables-mobile.js – data-label) ========== */
/* Próg podniesiony z 640px → 1200px: przy zoomie 200–250% viewport nadal >640px, a tabela ma
   min-width na kolumnach – wtedy był poziomy scroll. Poniżej 1200px od razu karty, bez przewijania. */
@media (max-width: 1200px) {
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"],
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] {
		display: block;
		width: 100%;
		border: none;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] thead,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] thead {
		display: none;
	}
	/* Pierwszy wiersz z th (mustache bez thead) – ukryty; klasa dodawana w ih-wpsam-tables-mobile.js */
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"].ih-first-row-is-header tr:first-child {
		display: none;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] tbody,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] tbody {
		display: block;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] tr,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] tr {
		display: block;
		margin-bottom: 1rem;
		padding: 0.75rem 0;
		border: 1px solid #d0ccc4;
		border-radius: 4px;
		background: #faf9f7;
		box-sizing: border-box;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] td,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] td {
		display: block;
		width: 100% !important;
		min-width: 0 !important;
		text-align: left !important;
		border: none;
		border-bottom: 1px solid #e8e6e2;
		padding: 0.5rem 0.75rem 0.5rem 42% !important;
		position: relative;
		box-sizing: border-box;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] tr td:last-child,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] tr td:last-child {
		border-bottom: none;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] td::before,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] td::before {
		content: attr(data-label);
		position: absolute;
		left: 0.75rem;
		top: 0.5rem;
		width: 38%;
		font-weight: 600;
		font-size: 12px;
		color: #5a5a5a;
		line-height: 1.4;
	}
	/*
	 * Moje umowy – kolumna ID: shortcode ma inline width:80px + nowrap + text-align:right na td:nth-child(1).
	 * Przy display:block (karty) 80px ściska komórkę → „ID8576” w jednym kleju. Reset = jak pozostałe wiersze:
	 * etykieta ID z ::before po lewej (38%), wartość w polu od 42% w lewo, jak Nieruchomość.
	 */
	/*
	 * Desktop (poza media): .wpsam-umowy-col-id ma display:table-cell !important + width:80px.
	 * W kartach tr/td są block – table-cell na pierwszej komórce psuje układ i łamie „8576” na 8/5/7/6.
	 */
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] td.wpsam-umowy-col-id,
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] tr td:nth-child(1) {
		display: block !important;
		width: 100% !important;
		min-width: 0 !important;
		max-width: none !important;
		text-align: left !important;
		white-space: normal !important;
	}
	/* Jedna linia jak „170 000 zł” – bez łamania każdej cyfry (word-break z .entry-content) */
	body.page-dane-wspolnika .wpsam-moje-umowy table.wpsam-umowy-table[data-ih-cards-ready="1"] td.wpsam-umowy-col-id .wpsam-umowy-id-num {
		display: block;
		text-align: left;
		white-space: nowrap;
		word-break: normal;
		overflow-wrap: normal;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] td:empty {
		display: none;
	}
	body.page-dane-wspolnika .associate_summary table.wpsam-transactions-table[data-ih-cards-ready="1"] .transaction-summary-row td {
		background: rgba(0, 0, 0, 0.06);
		font-weight: 600;
	}
}

@media (max-width: 768px) {
	body.ih-global-nav:not(.home) .inside-article {
		padding: 20px 16px 32px;
	}
	/* Na mobile minimum 16px */
	body.ih-global-nav:not(.home) .inside-article .entry-content {
		font-size: 16px;
		line-height: 1.55;
	}
}

@media (max-width: 900px) {
	.ih-inner-nav-wrap .nav-hamburger {
		display: flex;
	}
	.ih-inner-nav-wrap .nav-menu {
		display: none;
		width: 100%;
		flex-direction: column;
		align-items: stretch;
		padding: 16px 0;
	}
	.ih-inner-nav-wrap .nav.nav--open .nav-menu {
		display: flex;
	}
	.ih-inner-nav-wrap .nav {
		flex-wrap: wrap;
		padding-left: 24px;
		padding-right: 24px;
	}
	/* Hamburger + przycisk razem po prawej jak na froncie */
	.ih-inner-nav-wrap .nav-actions {
		margin-left: auto;
		order: 2;
	}
	.ih-inner-nav-wrap .nav-hamburger {
		order: 1;
		margin-left: auto;
	}
	.ih-inner-nav-wrap .nav-logo {
		order: 0;
	}
}

/* ========== Wpsam – przyciski jak g41: złoto #dab663, tekst #2d2d2d ========== */
/* Formularz logowania: HTML to .container > .login > form.form – NIE .container.login */
body.ih-inner-shell .login form.form button[type="submit"],
body.ih-global-nav .login form.form button[type="submit"],
body.ih-inner-shell .container .login form button[type="submit"],
body.ih-inner-shell .wpsam-bezpieczenstwo button.button:not(.wpsam-toggle-password),
body.ih-inner-shell .wpsam-bezpieczenstwo .button.button-primary {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 10px 28px !important;
	min-height: 52px !important;
	line-height: 1 !important;
	font-family: 'Inconsolata', monospace !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	cursor: pointer !important;
	text-decoration: none !important;
	border: none !important;
	border-radius: 0 !important;
	background: rgb(218, 182, 99) !important;
	background-color: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
}
body.ih-inner-shell .login form.form button[type="submit"]:hover,
body.ih-global-nav .login form.form button[type="submit"]:hover,
body.ih-inner-shell .container .login form button[type="submit"]:hover,
body.ih-inner-shell .wpsam-bezpieczenstwo button.button:not(.wpsam-toggle-password):hover,
body.ih-inner-shell .wpsam-bezpieczenstwo .button.button-primary:hover {
	background: rgb(187, 155, 87) !important;
	background-color: rgb(187, 155, 87) !important;
	color: #fff !important;
}
body.ih-inner-shell .wpsam-bezpieczenstwo button.button:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* Moje umowy – te same przyciski co wyżej; motyw ładuje się po GP – przebija pomarańczowy .button */
body.page-dane-wspolnika .wpsam-moje-umowy a.button,
body.page-dane-wspolnika .wpsam-moje-umowy button.button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 10px 28px !important;
	min-height: 52px !important;
	line-height: 1 !important;
	font-family: 'Inconsolata', monospace !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	border: none !important;
	border-radius: 0 !important;
	background: rgb(218, 182, 99) !important;
	background-color: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
}
body.page-dane-wspolnika .wpsam-moje-umowy a.button:hover,
body.page-dane-wspolnika .wpsam-moje-umowy button.button:hover {
	background: rgb(187, 155, 87) !important;
	background-color: rgb(187, 155, 87) !important;
	color: #fff !important;
}

/* Dyskusja przy transakcji – ten sam złoty przycisk co umowy / logowanie (GP nadpisuje .button na szary) */
body.ih-inner-shell .wpsam-transaction-discussion button.button,
body.ih-inner-shell .wpsam-transaction-discussion button[type="submit"],
body.ih-inner-shell .wpsam-discussion-form button.button,
body.ih-inner-shell .wpsam-discussion-form button[type="submit"],
body.ih-inner-shell .wpsam-discussion-edit-form button.button,
body.ih-inner-shell .wpsam-discussion-edit-form button[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 10px 28px !important;
	min-height: 52px !important;
	line-height: 1 !important;
	font-family: 'Inconsolata', monospace !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	border: none !important;
	border-radius: 0 !important;
	background: rgb(218, 182, 99) !important;
	background-color: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	box-shadow: none !important;
	transition: all 0.2s ease !important;
	cursor: pointer !important;
}
body.ih-inner-shell .wpsam-transaction-discussion button.button:hover,
body.ih-inner-shell .wpsam-transaction-discussion button[type="submit"]:hover,
body.ih-inner-shell .wpsam-discussion-form button.button:hover,
body.ih-inner-shell .wpsam-discussion-form button[type="submit"]:hover,
body.ih-inner-shell .wpsam-discussion-edit-form button.button:hover,
body.ih-inner-shell .wpsam-discussion-edit-form button[type="submit"]:hover {
	background: rgb(187, 155, 87) !important;
	background-color: rgb(187, 155, 87) !important;
	color: #fff !important;
}

/* Ta sama stylistyka na single transakcji gdy body nie ma jeszcze ih-inner-shell */
body.single-transaction .wpsam-transaction-discussion button.button,
body.single-transaction .wpsam-transaction-discussion button[type="submit"],
body.post-type-transaction .wpsam-transaction-discussion button.button,
body.post-type-transaction .wpsam-transaction-discussion button[type="submit"] {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-sizing: border-box !important;
	padding: 10px 28px !important;
	min-height: 52px !important;
	line-height: 1 !important;
	font-family: 'Inconsolata', monospace !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
	border: none !important;
	border-radius: 0 !important;
	background: rgb(218, 182, 99) !important;
	background-color: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	box-shadow: none !important;
	cursor: pointer !important;
}
body.single-transaction .wpsam-transaction-discussion button:hover,
body.post-type-transaction .wpsam-transaction-discussion button:hover {
	background: rgb(187, 155, 87) !important;
	color: #fff !important;
}

/* ========== Dyskusja przy transakcji – karty wpisów (GP zeruje article; style z motywu = na końcu cascade) ========== */
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post,
body.ih-inner-shell .wpsam-transaction-discussion .wpsam-discussion-post,
.wpsam-transaction-discussion .wpsam-discussion-list .wpsam-discussion-post {
	display: block !important;
	box-sizing: border-box !important;
	margin: 0 0 1.25rem 0 !important;
	padding: 1rem 1.25rem !important;
	background: #eceff2 !important;
	background-color: #eceff2 !important;
	border: 1px solid #d5dbe0 !important;
	border-radius: 8px !important;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
	overflow: hidden !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post:last-child,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post:last-child {
	margin-bottom: 0 !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post-meta,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post-meta,
.wpsam-transaction-discussion .wpsam-discussion-post-meta {
	display: block !important;
	margin: 0 0 0.75rem 0 !important;
	padding: 0 0 0.65rem 0 !important;
	border-bottom: 1px solid #cfd6dc !important;
	font-size: 0.9rem !important;
	color: #555 !important;
	line-height: 1.5 !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post-body,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post-body,
.wpsam-transaction-discussion .wpsam-discussion-post-body {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	font-size: 0.95rem !important;
	line-height: 1.55 !important;
	color: #2d2d2d !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-pre,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-pre {
	white-space: pre-wrap !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: none !important;
}
/* Treść lewa, autor/data prawa + odstęp nad formularzem */
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--layout-row,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--layout-row {
	display: flex !important;
	flex-direction: row-reverse !important;
	flex-wrap: wrap !important;
	align-items: flex-start !important;
	justify-content: space-between !important;
	gap: 1rem 1.25rem !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--layout-row .wpsam-discussion-post-meta,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--layout-row .wpsam-discussion-post-meta {
	flex: 0 0 auto !important;
	max-width: 42% !important;
	min-width: 10rem !important;
	margin: 0 !important;
	padding: 0 !important;
	border-bottom: none !important;
	text-align: right !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-post--layout-row .wpsam-discussion-post-body,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-post--layout-row .wpsam-discussion-post-body {
	flex: 1 1 55% !important;
	min-width: 12rem !important;
	margin: 0 !important;
}
body.single-transaction .wpsam-transaction-discussion .wpsam-discussion-form,
body.post-type-transaction .wpsam-transaction-discussion .wpsam-discussion-form {
	margin-top: 1.75rem !important;
	padding-top: 1.25rem !important;
	border-top: 1px solid #dde2e6 !important;
}

/* ========== WordPress – formularz hasła (.post-password-form) ========== */
/* Tylko kolory/tło – bez display:flex na input[type=submit] (może rozjeżdżać layout / logo). */
form.post-password-form input[type="submit"] {
	background: rgb(218, 182, 99) !important;
	color: rgb(45, 45, 45) !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 12px 24px !important;
	font-family: 'Inconsolata', monospace !important;
	font-weight: 600 !important;
	cursor: pointer !important;
}
form.post-password-form input[type="submit"]:hover {
	background: rgb(187, 155, 87) !important;
	color: #fff !important;
}

/* ========== FAQ – akordeon jak g41 (Popular questions: + / −, czysty układ) ========== */
/* Działa w .entry-content na stronie ze slugiem faq lub wszędzie, gdzie jest .ih-faq */
.ih-faq {
	max-width: 100%;
	margin: 1.5em 0 2em;
}
.ih-faq .ih-faq-item {
	border-bottom: 1px solid #e0ddd6;
}
.ih-faq .ih-faq-item:first-of-type {
	border-top: 1px solid #e0ddd6;
}
.ih-faq summary.ih-faq-q {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1rem 0;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.45;
	color: #2d2d2d;
	-webkit-user-select: none;
	user-select: none;
}
.ih-faq summary.ih-faq-q::-webkit-details-marker {
	display: none;
}
.ih-faq summary.ih-faq-q::before {
	content: "+";
	flex: 0 0 auto;
	width: 1.25rem;
	text-align: center;
	font-weight: 700;
	font-size: 1.15rem;
	line-height: 1.2;
	color: #2d2d2d;
}
.ih-faq details[open] summary.ih-faq-q::before {
	content: "−";
}
.ih-faq .ih-faq-a {
	padding: 0 0 1.25rem 2rem;
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.6;
	color: #444;
}
.ih-faq .ih-faq-a > p:first-child {
	margin-top: 0;
}
.ih-faq .ih-faq-a > p:last-child {
	margin-bottom: 0;
}
body.page-faq .entry-content .ih-faq {
	/* Opcjonalnie szerszy blok na stronie FAQ */
	margin-top: 0.5em;
}

