/**
 * Badania i analizy (page 235)
 * https://mbst.sopee.net/badania-i-analizy/
 */

/* ─── Arkusz treści — spójny z Znani / Mediach ─── */
body.mbst-page-badania.mbst-premium-ui #Content {
	background: #fff;
}

body.mbst-page-badania.mbst-premium-ui #Content .sections_group {
	border-radius: var(--mbst-radius-xl, 28px) !important;
	box-shadow: none !important;
	overflow: hidden !important;
	padding: clamp(28px, 4vw, 48px) clamp(16px, 3vw, 36px) clamp(40px, 5vw, 64px) !important;
}

body.mbst-page-badania.mbst-premium-ui .section.the_content {
	background: transparent;
	padding: 0;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje {
	max-width: min(1080px, 100%);
	margin: 0 auto;
}

/* Intro */
body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-intro {
	background: linear-gradient(160deg, #f8fafc 0%, #fff 55%);
	border-radius: var(--mbst-radius-lg, 20px);
	padding: clamp(24px, 4vw, 36px);
	border: 1px solid rgba(24, 34, 91, 0.06);
	margin-bottom: clamp(20px, 3vw, 28px);
	position: relative;
	overflow: hidden;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-intro::before {
	content: '';
	position: absolute;
	top: 0;
	left: clamp(20px, 3vw, 32px);
	width: 48px;
	height: 3px;
	border-radius: 999px;
	background: var(--mbst-cyan, #54add6);
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-intro h3 {
	font-size: clamp(1.25rem, 2.6vw, 1.65rem);
	font-weight: 700;
	color: var(--mbst-navy, #18225b);
	line-height: 1.35;
	margin: 0 0 12px;
	padding: 0;
	border: 0;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-lead {
	margin: 0 0 clamp(16px, 2.5vw, 22px);
	font-size: 15px;
	line-height: 1.65;
	color: var(--mbst-text-muted, #5a6478);
	max-width: 62ch;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-stats li {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(24, 34, 91, 0.05);
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-stats__value {
	font-size: 1.125rem;
	font-weight: 800;
	color: var(--mbst-navy, #18225b);
	letter-spacing: -0.02em;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-stats__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--mbst-text-muted, #5a6478);
}

/* Toolbar */
body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-toolbar {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: clamp(20px, 3vw, 28px);
	padding: clamp(16px, 2.5vw, 20px);
	border-radius: var(--mbst-radius-lg, 20px);
	background: #fff;
	border: 1px solid rgba(24, 34, 91, 0.06);
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-toolbar .mbst-publikacje-search,
body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-toolbar .mbst-publikacje-count {
	align-self: stretch;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-toolbar__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-filters--type,
body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-filters--lang {
	padding-top: 2px;
	border-top: 1px solid rgba(24, 34, 91, 0.06);
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-filters--type {
	padding-top: 10px;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-filter[data-type-filter],
body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-filter[data-lang-filter] {
	font-size: 0.75rem;
	min-height: 32px;
	padding: 6px 12px;
}

@media (min-width: 768px) {
	body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-toolbar .mbst-publikacje-search {
		flex: 1 1 auto;
	}

	body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-toolbar .mbst-publikacje-count {
		align-self: center;
	}
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-filter {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 8px 16px;
	border: none;
	border-radius: 999px;
	background: rgba(24, 34, 91, 0.05);
	color: var(--mbst-navy, #18225b);
	font-family: var(--mbst-font, 'Fira Sans', Arial, Tahoma, sans-serif);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-filter:hover {
	background: rgba(84, 173, 214, 0.12);
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-filter.is-active {
	background: linear-gradient(135deg, var(--mbst-navy, #18225b) 0%, #243570 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(24, 34, 91, 0.18);
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-search {
	flex: 1 1 280px;
	margin: 0;
	max-width: 100%;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-search-input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 16px 12px 42px;
	border: 1px solid rgba(24, 34, 91, 0.12);
	border-radius: 999px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--mbst-navy, #18225b);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235a6478' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") 14px center no-repeat;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-search-input:focus {
	outline: none;
	border-color: var(--mbst-cyan, #54add6);
	box-shadow: 0 0 0 3px rgba(84, 173, 214, 0.2);
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-count {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--mbst-navy, #18225b);
	white-space: nowrap;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(84, 173, 214, 0.1);
}

/* Year groups */
body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-list {
	display: flex;
	flex-direction: column;
	gap: clamp(20px, 3vw, 28px);
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-year-group {
	background: #fff;
	border: 1px solid rgba(24, 34, 91, 0.06);
	border-radius: var(--mbst-radius-lg, 20px);
	overflow: hidden;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-year-group.is-hidden {
	display: none;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-year-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: clamp(14px, 2vw, 18px) clamp(18px, 2.5vw, 24px);
	border: none;
	border-bottom: 1px solid rgba(24, 34, 91, 0.06);
	background: linear-gradient(135deg, var(--mbst-navy, #18225b) 0%, #243570 100%);
	color: #fff;
	font-size: clamp(1rem, 1.8vw, 1.2rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-year-heading::after {
	content: '−';
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	font-size: 1.1rem;
	line-height: 1;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-year-group.is-collapsed .mbst-pub-year-heading::after {
	content: '+';
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-year-group.is-collapsed .mbst-pub-year-items {
	display: none;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-year-items {
	display: flex;
	flex-direction: column;
	gap: 0;
	padding: 8px;
}

/* Cards */
body.mbst-page-badania.mbst-premium-ui .mbst-pub-item {
	background: #fff;
	border-radius: 12px;
	padding: clamp(16px, 2.2vw, 20px) clamp(18px, 2.5vw, 22px);
	border: 1px solid transparent;
	border-left: 4px solid var(--mbst-cyan, #54add6);
	transition: background 0.2s ease, border-color 0.2s ease;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-item + .mbst-pub-item {
	margin-top: 4px;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-item:hover {
	background: rgba(84, 173, 214, 0.04);
	border-left-color: var(--mbst-brand, #005596);
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-item.is-hidden {
	display: none;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-item.is-paged-out {
	display: none;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-item__head {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 8px;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-item__title-wrap {
	flex: 1;
	min-width: 0;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-badge {
	display: inline-flex;
	align-items: center;
	min-height: 22px;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-badge--type {
	background: rgba(0, 85, 150, 0.1);
	color: var(--mbst-brand, #005596);
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-badge--artykul {
	background: rgba(24, 34, 91, 0.1);
	color: var(--mbst-navy, #18225b);
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-badge--referat {
	background: rgba(84, 173, 214, 0.16);
	color: #2a6f8f;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-badge--poster,
body.mbst-page-badania.mbst-premium-ui .mbst-pub-badge--case {
	background: rgba(120, 86, 180, 0.12);
	color: #5a3f8f;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-badge--warsztat,
body.mbst-page-badania.mbst-premium-ui .mbst-pub-badge--media {
	background: rgba(46, 125, 96, 0.12);
	color: #2e6b52;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-badge--lang {
	background: rgba(24, 34, 91, 0.06);
	color: var(--mbst-text-muted, #5a6478);
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-links {
	margin: 10px 0 0;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--mbst-brand, #005596);
	text-decoration: none;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-link::after {
	content: '↗';
	font-size: 0.75rem;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-link:hover {
	text-decoration: underline;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 12px 20px;
	margin-top: clamp(20px, 3vw, 28px);
	padding: 16px 20px;
	border-radius: var(--mbst-radius-lg, 20px);
	background: #fff;
	border: 1px solid rgba(24, 34, 91, 0.06);
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-pagination[hidden] {
	display: none !important;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-page-btn {
	min-height: 38px;
	padding: 8px 18px;
	border: none;
	border-radius: 999px;
	background: rgba(24, 34, 91, 0.06);
	color: var(--mbst-navy, #18225b);
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-page-btn:hover:not(:disabled) {
	background: rgba(84, 173, 214, 0.18);
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-page-btn:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-page-info {
	font-size: 0.875rem;
	color: var(--mbst-text-muted, #5a6478);
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-page-info strong {
	color: var(--mbst-navy, #18225b);
}

/* Hero — delikatny overlay naukowy */
body.mbst-page-badania.mbst-premium-ui #Header_wrapper.mbst-hero-has-bg::before {
	background: linear-gradient(
		135deg,
		rgba(24, 34, 91, 0.62) 0%,
		rgba(0, 85, 150, 0.42) 48%,
		rgba(84, 173, 214, 0.22) 100%
	) !important;
}

/* Rok w nagłówku sekcji — ukryj duplikat na karcie */
body.mbst-page-badania.mbst-premium-ui .mbst-pub-year-group:not([data-year-group='inne']) .mbst-pub-year {
	display: none;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-year {
	flex: 0 0 auto;
	min-width: 48px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(0, 85, 150, 0.1);
	color: var(--mbst-brand, #005596);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	text-align: center;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-year--na {
	background: rgba(24, 34, 91, 0.08);
	color: var(--mbst-text-muted, #5a6478);
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-title {
	flex: 1;
	font-size: clamp(0.9375rem, 1.6vw, 1rem);
	font-weight: 700;
	line-height: 1.5;
	color: var(--mbst-navy, #18225b);
	margin: 0;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-meta {
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--mbst-text-muted, #5a6478);
	margin: 0;
	padding-left: 0;
}

body.mbst-page-badania.mbst-premium-ui .mbst-pub-year-group[data-year-group='inne'] .mbst-pub-meta {
	padding-left: 0;
}

body.mbst-page-badania.mbst-premium-ui .mbst-publikacje.is-empty .mbst-publikacje-list::after {
	content: 'Brak wyników dla podanej frazy.';
	display: block;
	padding: 24px;
	text-align: center;
	color: var(--mbst-text-muted, #5a6478);
	background: #fff;
	border-radius: 14px;
	border: 1px dashed rgba(24, 34, 91, 0.15);
}

@media (max-width: 767px) {
	body.mbst-page-badania.mbst-premium-ui #Content .sections_group {
		border-radius: var(--mbst-radius-lg, 20px) !important;
	}

	body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-toolbar {
		position: sticky;
		top: calc(var(--mbst-header-offset, 88px) - 4px);
		z-index: 20;
		box-shadow: 0 8px 24px rgba(24, 34, 91, 0.06);
	}

	body.mbst-page-badania.mbst-premium-ui .mbst-publikacje-filter {
		min-height: 34px;
		padding: 7px 14px;
	}
}

@media (max-width: 640px) {
	body.mbst-page-badania.mbst-premium-ui .mbst-pub-item__head {
		flex-direction: column;
		gap: 8px;
	}
}
