/* J-BIP-Tools „Wygląd BIP” — wspólny wygląd BIP-ów na TownPress 3.x (jak TownPress_BIP 1.6.4).
   --jbip-akcent ustawia moduł (Customizer TownPress albo ustawienia modułu). */

/* Zakładki na stronie głównej (WPBakery „Zakładki”): dwie po pół szerokości, napisy w kolorze akcentu, białe panele */
.home .vc_tta-container { margin-bottom: 24px; }
.home .vc_tta.vc_general .vc_tta-tabs-container { margin: 0; }
.home .vc_tta.vc_general .vc_tta-tabs-list { display: flex; width: 100%; margin: 0; padding: 0; }
.home .vc_tta.vc_general .vc_tta-tab { flex: 1 1 0; margin: 0; }
.home .vc_tta.vc_general .vc_tta-tab > a,
.home .vc_tta.vc_general .vc_tta-panel-title > a {
	display: block; padding: 14px 10px; text-align: center; background: #efebe6 !important;
	border: 0 !important; border-bottom: 3px solid transparent !important; border-radius: 0 !important;
	color: var(--jbip-akcent) !important; font-weight: bold; text-transform: uppercase; box-shadow: none;
}
.home .vc_tta.vc_general .vc_tta-tab:first-child > a { border-radius: 4px 0 0 0 !important; }
.home .vc_tta.vc_general .vc_tta-tab:last-child > a { border-radius: 0 4px 0 0 !important; }
.home .vc_tta.vc_general .vc_tta-tab > a:hover,
.home .vc_tta.vc_general .vc_tta-tab.vc_active > a,
.home .vc_tta.vc_general .vc_tta-panel.vc_active .vc_tta-panel-title > a { background: #fff !important; border-bottom-color: var(--jbip-akcent) !important; }
.home .vc_tta.vc_general .vc_tta-panels-container, .home .vc_tta.vc_general .vc_tta-panels { background: #fff !important; border: 0 !important; border-radius: 0 0 4px 4px; box-shadow: 1px 1px 0 rgba(0, 0, 0, .05); }
.home .vc_tta.vc_general .vc_tta-panel, .home .vc_tta.vc_general .vc_tta-panel-heading { border: 0 !important; background: none !important; }
.home .vc_tta.vc_general .vc_tta-panel-body { padding: 10px 30px 15px !important; background: none !important; border: 0 !important; }
/* listy wpisów w zakładkach ([lsvr_townpress_posts] i [lastupdated-posts]): tytuł po lewej, data po prawej */
.home .vc_tta .lsvr-townpress-posts__inner { padding: 0; margin: 0; background: none; box-shadow: none; }
.home .vc_tta .lsvr-townpress-posts__list { margin: 0; padding: 0; list-style: none; }
.home .vc_tta .lsvr-townpress-posts__item { margin: 0; padding: 8px 0; border-top: 1px solid #e5e5e5; list-style: none; }
.home .vc_tta .lsvr-townpress-posts__item:first-child { border-top: 0; }
.home .vc_tta .lsvr-townpress-posts__post { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin: 0; padding: 0; }
.home .vc_tta .lsvr-townpress-posts__post-title { flex: 1 1 auto; margin: 0; font-size: .99em; font-weight: bold; line-height: 1.35; }
.home .vc_tta .lsvr-townpress-posts__post-title-link { color: var(--jbip-akcent); text-decoration: none; }
.home .vc_tta .lsvr-townpress-posts__post-meta { flex: 0 0 auto; position: static; margin: 0; padding: 0; }
.home .vc_tta .lsvr-townpress-posts__post-meta:before { display: none; }
.home .vc_tta .lsvr-townpress-posts__post-meta-date { font-size: .75em; font-weight: normal; color: #888; white-space: nowrap; }
.home .vc_tta .lsvr-townpress-posts__more { display: none; }
@media (max-width: 640px) {
	.home .vc_tta.vc_general .vc_tta-panel-body { padding: 10px 15px !important; }
	.home .vc_tta .lsvr-townpress-posts__post { flex-direction: column; gap: 2px; }
}

/* Kategoria: lista tytułów z datą na białych kartach zamiast pełnych wpisów */
.blog-post-archive .post { margin-bottom: 12px; }
.blog-post-archive .post__inner.c-content-box { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 14px 30px; border-radius: 4px; }
/* clearfix motywu (::before/::after) byłby we flexie pustym elementem — tytuł miałby +20 px wcięcia */
.blog-post-archive .post__inner.c-content-box::before, .blog-post-archive .post__inner.c-content-box::after { display: none; }
.blog-post-archive .post__inner > :not(.post__header):not(.post__footer) { display: none; }
.blog-post-archive .post__header { flex: 1 1 auto; margin: 0; }
.blog-post-archive .post__title { margin: 0; font-size: .99em; font-weight: bold; line-height: 1.35; }
.blog-post-archive .post__title-link { color: var(--jbip-akcent); }
.blog-post-archive .post__footer { flex: 0 0 auto; margin: 0; padding: 0; font-size: .8em; color: #848484; border: 0; }
.blog-post-archive .post__footer:before { display: none; }
.blog-post-archive .post__meta-categories { display: none; }
@media (max-width: 640px) {
	.blog-post-archive .post__inner.c-content-box { flex-direction: column; gap: 5px; padding: 15px 20px; }
	.blog-post-archive .post__footer { margin-top: 5px; }
}

/* Podkategorie nad listą wpisów (moduł „dopiski-motywu”): kafelki w kolorze akcentu, równo z treścią */
ul.lista-kategorii { margin: 0 0 24px; padding: 0; list-style: none; }
ul.lista-kategorii > li { position: relative; margin: 12px 0; padding: 15px 10px 15px 30px; list-style-type: none; background-color: var(--jbip-akcent); border-radius: 4px; box-shadow: 1px 1px 0 rgba(0, 0, 0, .05); }
ul.lista-kategorii > li:first-child { margin-top: 0; }
ul.lista-kategorii > li.cat-item-none { display: none; }
.lista-kategorii a { font-size: .99em; font-weight: bold; color: #fff; }
ul.lista-kategorii a:hover { color: #fff; opacity: .85; }

/* Wpis: bez stopki z datą i kategorią — data publikacji jest w metryczce */
.blog-post-single .post__footer { display: none; }

/* Stary znacznik [lastupdated-posts] (TownPress_BIP) w treściach */
.last-update-widget li { list-style-type: none; }
.last-update-widget span { font-size: .857em; font-weight: normal; }
