/* ==========================================================================
   BS Łochów – integracja z Blocksy: font, paleta, top bar, mega menu, Zaloguj
   ========================================================================== */

/* --- Font i paleta Blocksy = BPS (działa niezależnie od ustawień Customizera) --- */
body.bs-site {
	--theme-font-family: var(--bs-font);
	--theme-font-weight: 400;
	--theme-text-color: var(--bs-ink);
	--theme-headings-color: var(--bs-ink);
	--theme-link-initial-color: var(--bs-green-700);
	--theme-link-hover-color: var(--bs-green);
	--theme-palette-color-1: #008363;
	--theme-palette-color-2: #006b51;
	--theme-palette-color-3: #56655f;
	--theme-palette-color-4: #18241f;
	--theme-palette-color-5: #d9e4df;
	--theme-palette-color-6: #e8f3ef;
	--theme-palette-color-7: #f4f8f6;
	--theme-palette-color-8: #ffffff;
	--theme-button-background-initial-color: #008363;
	--theme-button-background-hover-color: #006b51;
	--theme-button-border-radius: 999px;
	font-family: var(--bs-font);
}
body.bs-site :is(h1, h2, h3, h4, h5, h6) { font-family: var(--bs-font); font-weight: 700; }

/* --- Top bar (wstawiany przez motyw przed nagłówkiem) --- */
.bs-topbar .bs-segments, .bs-topbar .bs-topbar__tools { margin: 0; }

/* --- Nagłówek Blocksy --- */
.ct-header [data-row="middle"] { border-bottom: 1px solid var(--bs-line); }
.ct-header .site-branding img, .ct-header .site-logo-container img { max-height: 46px; width: auto; }
.ct-header .ct-menu-link { font-weight: 500; font-size: .9375rem; text-transform: none; letter-spacing: 0; }

/* Przycisk „Zaloguj” jako ostatnia pozycja menu (klasa bs-menu-login) */
.ct-header .menu > li.bs-menu-login { margin-left: 12px; }
.ct-header .menu > li.bs-menu-login > .ct-menu-link {
	background: var(--bs-green); color: #fff !important; border-radius: 999px;
	padding: 0 20px !important; height: 44px !important; font-weight: 600;
}
.ct-header .menu > li.bs-menu-login > .ct-menu-link::before { content: "" !important; display: inline-block !important; flex: none; position: static !important; opacity: 1 !important; transform: none !important;
	content: ""; width: 18px; height: 18px; margin-right: 8px; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7a4 4 0 018 0v3.5'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2'/%3E%3Cpath d='M8 10.5V7a4 4 0 018 0v3.5'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ct-header .menu > li.bs-menu-login > .ct-menu-link:hover { background: var(--bs-green-700); }
.ct-header .menu > li.bs-menu-login > .ct-menu-link::after { display: none !important; }
#offcanvas li.bs-menu-login > a { font-weight: 700; color: var(--bs-green-700); }

/* ==========================================================================
   MEGA MENU (desktop) – pozycja menu z klasą CSS „bs-megamenu”
   Poziom 2 = nagłówki kolumn, poziom 3 = linki. Bez wtyczek, bez JS.
   ========================================================================== */
@media (min-width: 1000px) {
	.ct-header [data-row="middle"] .menu > li.bs-megamenu { position: static; }
	.ct-header .menu > li.bs-megamenu > .sub-menu {
		left: 0 !important; right: 0; width: auto !important; max-width: none;
		margin: 0 auto; padding: 28px max(24px, calc((100% - 1240px) / 2 + 24px)) 32px;
		display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
		background: #fff; border-top: 1px solid var(--bs-line); border-radius: 0 0 16px 16px;
		box-shadow: 0 24px 48px rgba(0, 64, 47, .12);
		--dropdown-width: 100%;
	}
	.ct-header .menu > li.bs-megamenu > .sub-menu::before { display: none; }

	/* Kolumny */
	.ct-header .bs-megamenu > .sub-menu > li { position: static; border: 0 !important; flex-direction: column !important; align-items: stretch !important; }
	.ct-header .bs-megamenu > .sub-menu > li > .ct-menu-link {
		font-size: .8125rem !important; font-weight: 600; text-transform: uppercase; letter-spacing: .08em;
		color: var(--bs-muted) !important; padding: 0 0 10px !important; min-height: 0; pointer-events: auto;
		border-bottom: 2px solid var(--bs-mint); margin-bottom: 8px;
	}
	.ct-header .bs-megamenu > .sub-menu > li > .ct-menu-link[href="#"] { pointer-events: none; }
	.ct-header .bs-megamenu > .sub-menu > li > .ct-menu-link .ct-toggle-dropdown-desktop,
	.ct-header .bs-megamenu > .sub-menu > li > .ct-toggle-dropdown-desktop-ghost { display: none !important; }

	/* Linki w kolumnach – zawsze widoczne, bez własnego dropdownu */
	.ct-header .bs-megamenu > .sub-menu > li > .sub-menu {
		position: static !important; opacity: 1 !important; visibility: visible !important;
		transform: none !important; box-shadow: none !important; background: none !important;
		width: auto !important; margin: 0 !important; padding: 0 !important; display: grid !important; gap: 2px;
		pointer-events: auto !important;
	}
	.ct-header .bs-megamenu > .sub-menu > li > .sub-menu::before { display: none; }
	.ct-header .bs-megamenu > .sub-menu > li > .sub-menu > li { border: 0 !important; }
	.ct-header .bs-megamenu > .sub-menu > li > .sub-menu .ct-menu-link {
		padding: 8px 10px !important; margin-inline: -10px; border-radius: 8px;
		color: var(--bs-ink) !important; font-size: .9375rem; font-weight: 400;
	}
	.ct-header .bs-megamenu > .sub-menu > li > .sub-menu .ct-menu-link:hover { background: var(--bs-mint); color: var(--bs-green-700) !important; }
}

/* Logo zawiera nazwę banku – ukrywamy tekstowy tytuł witryny obok (zostaje dla czytników jako alt logo) */
.ct-header .site-branding:has(img) .site-title-container { display: none; }

/* ==========================================================================
   ELEMENTOR – slider banerów, stopka z szablonu
   ========================================================================== */
.bs-slider .swiper-slide-image, .bs-slider .swiper-slide img {
	width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #fff;
	border-radius: 14px; border: 1px solid var(--bs-line); display: block;
}
.bs-slider .swiper-slide a { display: block; border-radius: 14px; overflow: hidden; }
.bs-slider .elementor-swiper-button { background: #fff; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; box-shadow: var(--bs-shadow); }
.bs-slider .swiper-pagination-bullet { width: 10px; height: 10px; }

.bs-logo-white img { filter: brightness(0) invert(1); }
.bs-el-footer a:hover { color: #fff !important; text-decoration: underline; }
body.bs-has-el-footer .ct-footer { display: none; }

/* Komunikaty bezpieczeństwa z wpisów ([bs_komunikaty]) */
.bs-sec-cards { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); height: 100%; }
@media (max-width: 1024px) { .bs-sec-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bs-sec-cards { grid-template-columns: 1fr; } }
.bs-sec-cards .bs-security__card { height: 100%; box-sizing: border-box; }
.bs-sec-cards .bs-security__card .bs-link { margin-top: auto; }


/* --- Mega menu: tylko po kliknięciu (wyłączamy hover Blocksy) --- */
@media (min-width: 1000px) {
	.ct-header .menu > li.bs-megamenu:not(.bs-open) > .sub-menu { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
	.ct-header .menu > li.bs-megamenu.bs-open > .sub-menu { opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; transform: none !important; }
	.ct-header .menu > li.bs-megamenu.bs-open > a { color: var(--bs-green-700) !important; }
	.ct-header .menu > li.bs-megamenu.bs-open > a .ct-toggle-dropdown-desktop svg { transform: rotate(180deg); }
}

/* ==========================================================================
   SLIDER [bs_slider] – w zielonym pasku hero
   ========================================================================== */
.bs-slider2 { position: relative; width: 100%; }
.bs-slider2__viewport { position: relative; border-radius: 20px; overflow: hidden; background: rgba(0, 40, 30, .25); box-shadow: 0 30px 60px rgba(0, 30, 22, .3); }
.bs-slider2__track { display: grid; }
.bs-slider2__slide { grid-area: 1 / 1; aspect-ratio: var(--bs-ratio, 16/9); opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; display: block; position: relative; color: #fff; text-decoration: none; }
.bs-slider2__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.bs-slider2__slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
a.bs-slider2__slide:focus-visible { outline: 3px solid var(--bs-lime); outline-offset: -3px; }
.bs-slide--text { display: flex; align-items: center; gap: 24px; padding: clamp(24px, 4vw, 48px); box-sizing: border-box; background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0)); }
.bs-slide--text .bs-slide__inner { flex: 1 1 60%; min-width: 0; }
.bs-slide--text .bs-slide__media { flex: 0 1 40%; align-self: stretch; display: flex; align-items: center; }
.bs-slide--text .bs-slide__media img { width: 100%; height: auto; border-radius: 14px; }
.bs-slide__title { font-size: clamp(1.75rem, 3.4vw, 2.875rem); line-height: 1.08; font-weight: 700; color: #fff !important; margin: 16px 0 12px; letter-spacing: -.01em; }
.bs-slide__title em { font-style: normal; color: var(--bs-lime); }
.bs-slide__text { font-size: 1.0625rem; color: #d9eee6; margin: 0 0 22px; max-width: 52ch; }
@media (max-width: 640px) {
	.bs-slide--text { flex-direction: column; align-items: flex-start; }
	.bs-slide--text .bs-slide__media { display: none; }
}
.bs-slider2__controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.bs-slider2__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 12px; padding: 0; }
.bs-slider2__btn:hover { background: #fff; color: var(--bs-green-900); }
.bs-slider2__btn svg { width: 18px; height: 18px; }
.bs-slider2__dots { display: flex; gap: 8px; }
.bs-slider2__dot { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, .45); cursor: pointer; transition: width .25s, background .25s; }
.bs-slider2__dot[aria-current="true"] { width: 28px; background: var(--bs-lime); }
.bs-slider2__empty { color: #fff; background: rgba(0, 0, 0, .2); padding: 24px; border-radius: 14px; }

/* --- Szybkie sprawy (widżety „Ramka z ikoną” z klasą bs-quickrow) --- */
.bs-quickrow .elementor-icon-box-wrapper { border: 1px solid var(--bs-line); border-radius: 12px; padding: 12px 44px 12px 14px; position: relative; transition: border-color .15s, background .15s; align-items: center !important; }
.bs-quickrow .elementor-icon-box-wrapper::after { content: "→"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--bs-green); font-weight: 700; transition: transform .15s; }
.bs-quickrow:hover .elementor-icon-box-wrapper { border-color: var(--bs-green); background: var(--bs-mint-2); }
.bs-quickrow:hover .elementor-icon-box-wrapper::after { transform: translate(3px, -50%); }
.bs-quickrow .elementor-icon-box-title a::after { content: ""; position: absolute; inset: 0; }
.bs-quickrow .elementor-icon-box-title, .bs-quickrow .elementor-icon-box-description { margin: 0 !important; }

/* --- Pasek „Na skróty” (siatka z klasą bs-shortcuts-el) --- */
.bs-shortcuts-el .elementor-widget-icon-box { border-right: 1px solid var(--bs-line); border-bottom: 1px solid var(--bs-line); padding: 22px 18px; transition: background .15s; position: relative; margin: 0 !important; }
.bs-shortcuts-el .elementor-widget-icon-box:hover { background: var(--bs-mint-2); }
.bs-shortcuts-el .elementor-widget-icon-box:hover .elementor-icon-box-title { color: var(--bs-green-700); }
.bs-shortcuts-el .elementor-icon-box-title a::after { content: ""; position: absolute; inset: 0; }
@media (min-width: 1025px) { .bs-shortcuts-el .elementor-widget-icon-box:nth-child(6n) { border-right: 0; } .bs-shortcuts-el .elementor-widget-icon-box { border-bottom: 0; } }

/* --- Menu w stopce [bs_menu] --- */
.bs-footer-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bs-footer-menu a { color: #e6f2ed !important; text-decoration: none; font-size: .9375rem; display: inline-flex; gap: 8px; }
.bs-footer-menu a::before { content: "›"; color: var(--bs-lime); font-weight: 700; }
.bs-footer-menu a:hover { color: #fff !important; text-decoration: underline; }

/* ==========================================================================
   WTYCZKI – wygląd dopasowany do strony (bez zmian w kodzie wtyczek)
   ========================================================================== */
/* NBP Kursy Tabela [nbp_kursy] */
.nbp-rates-wrapper { font-family: var(--bs-font) !important; max-width: none !important; }
.nbp-rates-date { font-size: .8125rem !important; color: var(--bs-muted); margin: 0 0 10px !important; }
.nbp-rates-table { width: 100%; border-collapse: collapse !important; font-variant-numeric: tabular-nums; }
.nbp-rates-table thead th { background: none !important; padding: 10px 0 !important; font-size: .8125rem !important; font-weight: 500 !important; color: var(--bs-muted); border: 0 !important; border-bottom: 1px solid var(--bs-line) !important; }
.nbp-rates-table tbody td { padding: 10px 0 !important; font-size: .9375rem !important; border: 0 !important; border-bottom: 1px solid var(--bs-line) !important; background: none !important; }
.nbp-rates-table tbody tr:last-child td { border-bottom: 0 !important; }
.nbp-rates-table td:last-child, .nbp-rates-table th:last-child { text-align: right !important; }
.nbp-rates-table td:last-child { font-weight: 600; }
/* Tabele Pro [tabela id="X"] */
.tbp-wrap {
	--tbp-header-bg: var(--bs-green) !important; --tbp-header-color: #fff !important;
	--tbp-stripe: var(--bs-mint-2) !important; --tbp-radius: 12px !important; --tbp-font-size: 15px !important;
	--tbp-text-color: var(--bs-ink) !important; --tbp-padding: 10px 14px !important;
	font-family: var(--bs-font); font-variant-numeric: tabular-nums; margin-bottom: 0 !important;
}
.tbp-wrap .tbp-table { border: 1px solid var(--bs-line) !important; }
.tbp-wrap .tbp-table tbody td, .tbp-wrap .tbp-table tbody th { border-top: 1px solid var(--bs-line) !important; }
/* Popup Manager */
.spm-dialog { --spm-radius: 20px; --spm-fg: var(--bs-ink); font-family: var(--bs-font); box-shadow: 0 30px 80px rgba(0, 30, 22, .35); }
.spm-button { background: var(--bs-green) !important; color: #fff !important; border-radius: 999px !important; font-weight: 600; padding: 12px 22px !important; }
.spm-button:hover { background: var(--bs-green-700) !important; }
.spm-dot.is-active { background: var(--bs-green) !important; }
.spm-close:focus-visible, .spm-button:focus-visible { outline: 3px solid var(--bs-lime); outline-offset: 2px; }

/* Baner „Masz pytanie? Porozmawiajmy.” (Elementor, klasa bs-cta-el) */
.bs-cta-el { position: relative; overflow: hidden; }
.bs-cta-el::after { content: ""; position: absolute; right: -60px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; background: rgba(202, 210, 49, .18); pointer-events: none; }
.bs-cta-el > * { position: relative; z-index: 1; }
.bs-cta-el .bs-cta__phone { color: #fff !important; font-size: 1.5rem; font-weight: 700; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.bs-cta-el .bs-cta__phone svg { width: 26px; height: 26px; color: var(--bs-lime); }
.bs-cta-el p { margin: 0; }

/* Autor i komentarze ukryte w metadanych wpisów (zapas, gdy filtr Blocksy nie zadziała) */
.entry-meta [class*="meta-author"], .entry-meta [class*="meta-comments"], .ct-author-box, .author-box, .post-navigation .ct-author, .comments-area, #comments { display: none !important; }

/* Slider – strzałka wstecz (lustrzane odbicie ikony) */
.bs-slider2__btn[data-dir="-1"] svg { transform: scaleX(-1); }

/* Kursy NBP A+C w wąskiej karcie: kod waluty zamiast pełnej nazwy */
.e-con .nbp-rates--ac .nbp-name { display: none; }
.nbp-rates-table th[scope="row"] { font-weight: 400 !important; border-bottom: 1px solid var(--bs-line) !important; padding: 10px 0 !important; }
.nbp-code { background: var(--bs-mint) !important; color: var(--bs-green-900); }
.nbp-rates-source { font-size: .75rem !important; color: var(--bs-muted); }


/* ==========================================================================
   PODSTRONY – nagłówek strony i treść przeniesiona ze starej witryny
   ========================================================================== */
/* Nagłówek (tytuł strony Blocksy) jako pasek w kolorach BPS */
body.page:not(.home) .hero-section[data-type="type-1"],
body.single-post .hero-section[data-type="type-1"] { margin-bottom: 8px; }
body.page:not(.home) .hero-section .page-title,
body.single-post .hero-section .page-title { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 700; color: var(--bs-green-900); letter-spacing: -.01em; }
body.page:not(.home) .hero-section .page-title::after,
body.single-post .hero-section .page-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--bs-lime); margin-top: 14px; }

/* Czytelna szerokość i rytm tekstu */
body.page:not(.home) .entry-content, body.single-post .entry-content { font-size: 1.0625rem; line-height: 1.7; color: var(--bs-ink); }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); color: var(--bs-green-900); margin: 2em 0 .6em; line-height: 1.25; }
.entry-content h3 { font-size: 1.25rem; color: var(--bs-green-900); margin: 1.6em 0 .5em; }
.entry-content h4 { font-size: 1.0625rem; margin: 1.4em 0 .4em; }
.entry-content p { margin: 0 0 1em; }
.entry-content a:not(.bs-btn):not(.bs-subpage):not(.bs-news__card):not(.bs-security__card) { color: var(--bs-green-700); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry-content a:not(.bs-btn):hover { color: var(--bs-green); text-decoration-thickness: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin: .35em 0; }
.entry-content ul > li::marker { color: var(--bs-green); }
.entry-content img { border-radius: 12px; height: auto; }
.entry-content hr { border: 0; height: 1px; background: var(--bs-line); margin: 2em 0; }
.entry-content blockquote { border-left: 4px solid var(--bs-lime); background: var(--bs-mint-2); margin: 1.5em 0; padding: 16px 20px; border-radius: 0 12px 12px 0; }

/* Dokumenty PDF w listach – „karty plików” */
.entry-content li:has(> a[href$=".pdf" i]), .entry-content p:has(> a[href$=".pdf" i]:only-child) { list-style: none; }
.entry-content ul:has(> li > a[href$=".pdf" i]) { padding-left: 0; display: grid; gap: 8px; }
.entry-content a[href$=".pdf" i] { display: inline-flex; align-items: center; gap: 10px; }
.entry-content li > a[href$=".pdf" i], .entry-content p > a[href$=".pdf" i]:only-child {
	display: flex; padding: 12px 16px; border: 1px solid var(--bs-line); border-radius: 12px; background: #fff;
	text-decoration: none !important; color: var(--bs-ink) !important; font-weight: 500; transition: border-color .15s, background .15s;
}
.entry-content li > a[href$=".pdf" i]:hover, .entry-content p > a[href$=".pdf" i]:only-child:hover { border-color: var(--bs-green); background: var(--bs-mint-2); }
.entry-content a[href$=".pdf" i]::before {
	content: "PDF"; flex: none; display: inline-grid; place-items: center; width: 40px; height: 28px; border-radius: 6px;
	background: var(--bs-mint); color: var(--bs-green-700); font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.entry-content a[href$=".pdf" i]::after { content: none !important; }

/* Rozwijane sekcje (dawne akordeony Elementora) */
.entry-content details { border: 1px solid var(--bs-line); border-radius: 12px; margin: 0 0 10px; background: #fff; }
.entry-content details > summary { cursor: pointer; padding: 14px 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.entry-content details > summary::-webkit-details-marker { display: none; }
.entry-content details > summary::after { content: "+"; color: var(--bs-green); font-size: 1.25rem; line-height: 1; }
.entry-content details[open] > summary::after { content: "–"; }
.entry-content details > *:not(summary) { padding: 0 18px; }
.entry-content details[open] { border-color: var(--bs-green); }

/* Przyciski w treści */
.entry-content .bs-btn { text-decoration: none; }

/* Tabele w treści – przewijanie na telefonie */
.entry-content table { display: block; overflow-x: auto; max-width: 100%; border-radius: 12px; border: 1px solid var(--bs-line); }
.entry-content table th, .entry-content table td { min-width: 90px; }

/* Karty podstron [bs_podstrony] */
.bs-subpages { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 0 0 2em; }
.bs-subpage { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; background: #fff; border: 1px solid var(--bs-line); border-radius: 14px; text-decoration: none !important; color: var(--bs-ink) !important; transition: box-shadow .2s, transform .2s, border-color .2s; }
.bs-subpage:hover { box-shadow: var(--bs-shadow-hover); transform: translateY(-2px); border-color: transparent; }
.bs-subpage strong { font-size: 1.0625rem; color: var(--bs-green-900); }
.bs-subpage__ex { color: var(--bs-muted); font-size: .9375rem; line-height: 1.5; }
.bs-subpage .bs-link { margin-top: auto; font-size: .9375rem; }

/* Pojedynczy wpis: obrazek wyróżniający zaokrąglony */
.single-post .ct-featured-image img { border-radius: 16px; }

/* Pojedynczy wpis – zdjęcie wyróżniające (z motywu; ewentualne zdjęcie Blocksy ukryte, by się nie dublowało) */
.single-post .ct-featured-image { display: none !important; }
.bs-post-hero { margin: 0 0 28px; border-radius: 16px; overflow: hidden; background: var(--bs-mint-2); border: 1px solid var(--bs-line); }
.bs-post-hero__img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 0 !important; }

/* Podstrony: zajawka (excerpt) nie pokazuje się pod tytułem – służy tylko do kart [bs_podstrony] */
body.page:not(.home) .hero-section .page-description { display: none; }


/* ==========================================================================
   SEKCJA „Wskaźniki i kursy walut” – dopracowany wygląd
   ========================================================================== */
/* Tabela stóp (Tabele Pro, klasa bs-rates-table) */
.tbp-wrap .tbp-table { border-radius: 12px !important; overflow: hidden; }
.tbp-wrap caption { text-align: left; color: var(--bs-muted); font-size: .8125rem !important; padding: 0 0 10px !important; }
.tbp-wrap .tbp-table thead th { font-size: .8125rem; font-weight: 600; letter-spacing: .02em; padding: 10px 14px !important; }
.tbp-wrap .tbp-table thead th:not(:first-child) { text-align: right !important; }
.tbp-wrap .tbp-table td { padding: 12px 14px !important; vertical-align: middle; font-variant-numeric: tabular-nums; }
.tbp-wrap .tbp-table td:not(:first-child) { text-align: right !important; font-weight: 700; font-size: 1rem; color: var(--bs-green-900); white-space: nowrap; }
.tbp-wrap .tbp-table td[colspan="3"] { text-align: left !important; font-size: .8125rem !important; text-transform: uppercase; letter-spacing: .06em; padding-top: 10px !important; padding-bottom: 10px !important; }
.tbp-wrap .tbp-table td:first-child strong { display: block; font-size: .9375rem; color: var(--bs-ink); }
.bs-rate-note, .tbp-wrap .tbp-table td:first-child span[style*="font-size"] { display: block; font-size: .75rem !important; line-height: 1.35; color: var(--bs-muted); font-weight: 400; margin-top: 2px; }
.tbp-wrap .tbp-table td:first-child { text-align: left !important; }
.tbp-wrap .tbp-table td:first-child br { display: none; }

/* Kursy NBP */
.nbp-rates-table { border: 1px solid var(--bs-line); border-radius: 12px; border-collapse: separate !important; border-spacing: 0; overflow: hidden; }
.nbp-rates-table thead th { background: var(--bs-green) !important; color: #fff !important; padding: 10px 14px !important; border: 0 !important; font-size: .8125rem !important; font-weight: 600 !important; }
.nbp-rates-table tbody th, .nbp-rates-table tbody td { padding: 12px 14px !important; border: 0 !important; border-top: 1px solid var(--bs-line) !important; background: #fff !important; }
.nbp-rates-table tbody tr:first-child th, .nbp-rates-table tbody tr:first-child td { border-top: 0 !important; }
.nbp-rates-table tbody tr:hover th, .nbp-rates-table tbody tr:hover td { background: var(--bs-mint-2) !important; }
.nbp-rates-table td.nbp-num { color: var(--bs-green-900); font-size: 1rem !important; }
.nbp-cur { display: grid !important; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.nbp-code { grid-row: span 2; min-width: 44px !important; height: 26px !important; font-size: 12px !important; }
.e-con .nbp-rates--ac .nbp-name, .nbp-name { display: block !important; font-size: .75rem; color: var(--bs-muted); line-height: 1.3; }
.nbp-rates-date { font-size: .8125rem !important; color: var(--bs-muted); opacity: 1 !important; }
.nbp-rates-date strong { color: var(--bs-ink); }
@media (max-width: 520px) { .nbp-name { display: none !important; } .nbp-rates-table th, .nbp-rates-table td { padding: 10px 8px !important; } }

/* Pasek „Na skróty” pod tabelami (lista ikon w poziomie) */
.bs-rates-quick .elementor-icon-list-items { display: flex !important; flex-wrap: wrap; gap: 10px; }
.bs-rates-quick .elementor-icon-list-item { margin: 0 !important; padding: 0 !important; }
.bs-rates-quick .elementor-icon-list-item > a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--bs-line); border-radius: 999px; background: #fff; transition: border-color .15s, background .15s; }
.bs-rates-quick .elementor-icon-list-item > a:hover { border-color: var(--bs-green); background: var(--bs-mint-2); }
.bs-rates-quick .elementor-icon-list-text { padding: 0 !important; font-weight: 500; }
.bs-rates-quick .elementor-icon-list-item::after { display: none !important; }

/* Mapa strony [bs_mapa_strony] */
.bs-sitemap { columns: 2 280px; column-gap: 40px; }
.bs-sitemap > ul { margin: 0; padding: 0; list-style: none; }
.bs-sitemap > ul > li { break-inside: avoid; margin: 0 0 18px; }
.bs-sitemap > ul > li > a { font-weight: 700; color: var(--bs-green-900) !important; text-decoration: none !important; }
.bs-sitemap ul ul { margin: 6px 0 0; padding-left: 1.1em; }

/* Karty podstron ze zdjęciem */
.bs-subpage.has-img { padding: 0; overflow: hidden; }
.bs-subpage__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bs-mint); }
.bs-subpage__img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0 !important; transition: transform .4s; }
.bs-subpage:hover .bs-subpage__img img { transform: scale(1.04); }
.bs-subpage__body { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bs-subpage.has-img .bs-subpage__body { padding: 18px 20px 20px; }

/* Poprawki tabel wskaźników */
.nbp-rates-table th[scope="row"] { border-bottom: 0 !important; }
.tbp-wrap caption { padding: 0 0 10px 2px !important; overflow: visible; }
.tbp-wrap .tbp-table { overflow: visible !important; }
.tbp-wrap .tbp-table thead th:first-child { border-top-left-radius: 11px; } .tbp-wrap .tbp-table thead th:last-child { border-top-right-radius: 11px; }
