.pnib,
.pnib * {
	box-sizing: border-box;
}

.pnib {
	--pnib-ink: #042129;
	--pnib-accent: #ffe542;
	--pnib-border: rgba(4, 33, 41, .16);
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 16px 0 18px;
	overflow: hidden;
	container-type: inline-size;
	color: var(--pnib-ink);
	background: #fff;
	border-block: 1px solid var(--pnib-border);
}

.pnib__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 12px;
	padding: 0 2px;
}

.pnib__title {
	margin: 0;
	font: inherit;
	font-size: clamp(16px, 1.5vw, 20px);
	font-weight: 750;
	line-height: 1.2;
	letter-spacing: .01em;
	color: var(--pnib-ink);
}

.pnib__title::before {
	display: inline-block;
	width: 9px;
	height: 9px;
	margin-inline-end: 8px;
	border-radius: 50%;
	background: var(--pnib-accent);
	box-shadow: 0 0 0 3px rgba(255, 229, 66, .22);
	content: "";
}

.pnib__controls {
	display: flex;
	flex: 0 0 auto;
	gap: 6px;
}

.pnib__button {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	min-width: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--pnib-border);
	border-radius: 50%;
	background: #fff;
	color: var(--pnib-ink);
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
}

.pnib__button:hover,
.pnib__button:focus-visible {
	border-color: var(--pnib-ink);
	background: var(--pnib-accent);
	color: var(--pnib-ink);
	outline: none;
}

.pnib__button:disabled {
	opacity: .4;
	cursor: default;
}

.pnib__viewport {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	scroll-behavior: smooth;
	scroll-snap-type: inline mandatory;
	scrollbar-width: thin;
	scrollbar-color: rgba(4, 33, 41, .28) transparent;
}

.pnib__viewport:focus-visible {
	outline: 2px solid var(--pnib-accent);
	outline-offset: 3px;
}

.pnib__track {
	display: flex;
	width: max-content;
	min-width: 100%;
	gap: 12px;
	padding: 1px 1px 7px;
}

.pnib__card {
	display: flex;
	flex: 0 0 clamp(280px, 30cqw, 420px);
	flex-direction: column;
	min-width: 0;
	max-width: 420px;
	min-height: 152px;
	padding: 16px;
	border: 1px solid var(--pnib-border);
	border-radius: 12px;
	background: #fff;
	scroll-snap-align: start;
	box-shadow: 0 8px 24px rgba(4, 33, 41, .055);
}

.pnib__meta-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.pnib__category,
.pnib__community {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .035em;
}

.pnib__category {
	background: var(--pnib-accent);
	color: var(--pnib-ink);
}

.pnib__community {
	border: 1px solid var(--pnib-border);
	color: #5a696d;
}

.pnib__headline {
	margin: 0 0 14px;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.42;
	color: var(--pnib-ink);
}

.pnib__headline a,
.pnib__headline a:visited {
	color: inherit;
	font-size: inherit;
	text-decoration: none;
}

.pnib__headline a:hover,
.pnib__headline a:focus-visible {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: var(--pnib-accent);
	text-decoration-thickness: 3px;
	text-underline-offset: 3px;
	outline: none;
}

.pnib__external {
	font-size: .85em;
}

.pnib__source {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	color: #607177;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
}

.pnib-empty {
	padding: 12px 14px;
	border: 1px dashed rgba(4, 33, 41, .35);
	background: #fffdf0;
	color: #042129;
	font-size: 14px;
}

@media (max-width: 900px) {
	.pnib__card {
		flex-basis: min(72cqw, 390px);
	}
}

@media (max-width: 600px) {
	.pnib {
		padding-block: 13px 15px;
	}
	.pnib__header {
		margin-bottom: 10px;
	}
	.pnib__card {
		flex-basis: calc(100cqw - 20px);
		min-height: 142px;
		padding: 14px;
	}
	.pnib__headline {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pnib__viewport {
		scroll-behavior: auto;
	}
}
