/* Overrides: Lovable header + „Теми в развитие“ + topic cards */

/* ── nc-top ── */
.nc-top {
	position: relative;
}

.nc-top__sticky {
	position: sticky;
	top: 0;
	z-index: 40;
	background: hsl(0, 0%, 100%);
	box-shadow: var(--nc-shadow-sm);
	padding-top: env(safe-area-inset-top, 0);
}

.nc-top__bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	min-height: 4.25rem;
	padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
	gap: clamp(0.5rem, 2.5vw, 1rem);
	border-bottom: 1px solid var(--nc-border);
}

.nc-top__burger {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	margin-left: -0.25rem;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	color: inherit;
	line-height: 0;
	-webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) {
	.nc-top__burger {
		display: none;
	}
}

.nc-brand {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--nc-fg);
	font-weight: 700;
	font-size: 1.125rem;
	letter-spacing: -0.02em;
	font-family: var(--nc-font-body);
	flex: 0 1 auto;
	min-width: 0;
}

.nc-brand:hover {
	text-decoration: none;
	color: var(--nc-fg);
	opacity: 0.95;
}

.nc-brand img {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.5rem;
	display: block;
	flex-shrink: 0;
}

.nc-brand__title {
	line-height: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: min(58vw, 16rem);
}

.nc-brand__dotbg {
	color: var(--nc-primary);
}

.nc-show-md {
	display: none;
	align-items: center;
	gap: 0.375rem;
	font-size: 11px;
	color: var(--nc-muted);
	white-space: nowrap;
	line-height: 1;
	font-family: var(--nc-font-body);
}

.nc-icon-sm {
	flex-shrink: 0;
	vertical-align: middle;
}

@media (min-width: 768px) {
	.nc-show-md {
		display: flex;
	}
}

.nc-flex-spacer {
	flex: 1 1 auto;
	min-width: 0;
	align-self: center;
	min-height: 0;
	height: auto;
	box-sizing: border-box;
}

.nc-top__search {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	max-width: 20rem;
}

.nc-top__glass {
	position: absolute;
	left: 0.625rem;
	top: 50%;
	transform: translateY(-50%);
	width: 0.875rem;
	height: 0.875rem;
	color: var(--nc-muted);
	pointer-events: none;
	flex-shrink: 0;
	opacity: 0.85;
}

.nc-top__search-form {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

.nc-top__field {
	display: block;
	width: 100%;
	box-sizing: border-box;
	height: 2rem;
	padding: 0.25rem 0.5rem 0.25rem 2rem;
	font-family: inherit;
	font-size: 0.75rem;
	line-height: 1.25rem;
	color: var(--nc-fg);
	background: hsl(0, 0%, 96%);
	border: 1px solid var(--nc-border);
	border-radius: var(--nc-radius);
}

.nc-top__field:focus {
	outline: 2px solid hsl(217deg 70% 55% / 0.35);
	outline-offset: 0;
}

.nc-show-lg {
	display: none;
	align-items: center;
	gap: 0.375rem;
	flex-shrink: 0;
}

@media (min-width: 1024px) {
	.nc-show-lg {
		display: flex;
		flex-shrink: 0;
	}
}

.nc-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	min-height: 2rem;
	padding: 0 0.75rem;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	border-radius: var(--nc-radius);
	text-decoration: none;
	font-family: inherit;
	white-space: nowrap;
	transition: filter 0.15s ease, background 0.15s ease;
}

.nc-cta--pri {
	background: var(--nc-primary);
	color: var(--nc-primary-fg);
	border: 1px solid var(--nc-primary);
}

.nc-cta--pri:hover {
	filter: brightness(1.05);
	text-decoration: none;
	color: var(--nc-primary-fg);
}

.nc-cta--outline {
	background: hsl(0, 0%, 100%);
	color: var(--nc-fg);
	border: 1px solid var(--nc-border);
}

.nc-cta--outline:hover {
	background: hsl(0, 0%, 93%);
	text-decoration: none;
	color: var(--nc-fg);
}

.nc-i {
	width: 0.75rem;
	height: 0.75rem;
	flex-shrink: 0;
}

/* Филтър ленти (десктоп) */
.nc-strip-desk {
	display: none;
	border-bottom: 1px solid var(--nc-border);
}

@media (min-width: 1024px) {
	.nc-strip-desk {
		display: block;
	}
}

.nc-strip-group {
	width: 100%;
}

.nc-strip--row {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid var(--nc-border);
}

.nc-strip--row-last {
	border-bottom: 0;
}

.nc-strip__label {
	flex: 0 0 140px;
	width: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 0.75rem;
	background: var(--nc-fg);
	color: hsl(0, 0%, 96%);
	box-sizing: border-box;
	min-height: 2.5rem;
}

.nc-strip__label span {
	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	text-align: center;
	white-space: nowrap;
}

.nc-strip__scroll {
	flex: 1 1 auto;
	min-width: 0;
	overflow-x: visible;
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	background: hsl(0, 0%, 99%);
	gap: 0;
}

.nc-strip__tab {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: 0 0.75rem;
	line-height: 32px;
	font-size: 11px;
	font-weight: 500;
	font-family: var(--nc-font-body);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-right: 1px solid var(--nc-border);
	color: var(--nc-fg);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.nc-strip__tab:hover {
	background: hsl(0, 0%, 93% / 0.6);
	color: var(--nc-fg);
	text-decoration: none;
}

.nc-strip__tab.is-active {
	background: var(--nc-primary);
	color: var(--nc-primary-fg);
}

.nc-strip__tab.is-active:hover {
	color: var(--nc-primary-fg);
	filter: brightness(1.04);
	text-decoration: none;
}

.nc-strip__tab.nc-strip__tab--accent {
	font-weight: 600;
	color: var(--nc-primary);
	background: hsl(217, 100%, 96%);
}

.nc-strip__tab.nc-strip__tab--accent:hover {
	color: var(--nc-primary);
	background: hsl(217, 100%, 93%);
	text-decoration: none;
}

.nc-strip__empty {
	padding: 0.5rem 0.75rem;
	font-size: 11px;
	color: var(--nc-muted);
	align-self: center;
}

/* Мобилен drawer */
.nc-top__drawer {
	background: hsl(0, 0%, 100%);
	border-bottom: 1px solid var(--nc-border);
}

@media (min-width: 1024px) {
	.nc-top__drawer {
		display: none !important;
	}
}

.nc-top__drawer[hidden] {
	display: none !important;
}

.nc-drawer-push {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	padding: 0.75rem;
	padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
	border-top: 1px solid var(--nc-border);
}

@media (max-width: 380px) {
	.nc-drawer-push {
		grid-template-columns: 1fr;
	}
}

.nc-cta--wide {
	width: 100%;
	justify-content: center;
	min-height: 2.25rem;
	height: auto;
	box-sizing: border-box;
	flex-wrap: nowrap;
	min-width: 0;
	font-size: 0.75rem;
	line-height: 1;
	padding-inline: 0.5rem;
	word-break: break-word !important;
}

body.nc-drawer-open {
	overflow: hidden;
}

/* Контейнер като на Lovable + safe-area инсети (мобилна „капка“ и др.) */
.nc-main__inner,
.nc-shell {
	max-width: var(--nc-max) !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-top: 1.5rem !important;
	padding-bottom: max(3rem, env(safe-area-inset-bottom, 0px)) !important;
	padding-left: max(1rem, env(safe-area-inset-left, 0px)) !important;
	padding-right: max(1rem, env(safe-area-inset-right, 0px)) !important;
}

@media (min-width: 1024px) {
	.nc-main__inner,
	.nc-shell {
		padding-left: max(1.5rem, env(safe-area-inset-left, 0px)) !important;
		padding-right: max(1.5rem, env(safe-area-inset-right, 0px)) !important;
	}
}

/* „Теми в развитие“ заглавен ред */
.nc-pagehead__top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	padding-top: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 0;
}

.nc-pagehead__left {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.nc-pagehead__bar {
	width: 0.25rem;
	height: 2rem;
	border-radius: 999px;
	background: var(--nc-primary);
	flex-shrink: 0;
	margin-top: 0.125rem;
}

.nc-pagehead__hrow {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	line-height: 1.25;
}

.nc-svg-spark {
	width: 1rem;
	height: 1rem;
	color: var(--nc-primary);
	flex-shrink: 0;
}

.nc-pagehead__title {
	font-family: var(--nc-font-head);
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	margin: 0;
	color: var(--nc-fg);
}

.nc-pagehead__sub {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	margin: 0.25rem 0 0;
	font-size: 11px;
	color: var(--nc-muted);
	font-family: var(--nc-font-body);
	line-height: 1.35;
	flex-wrap: wrap;
}

.nc-pagehead__subico {
	flex-shrink: 0;
	vertical-align: middle;
	opacity: 0.9;
	color: inherit;
}

.nc-pagehead__filters {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-wrap: wrap;
	gap: 0.375rem;
}

.nc-fpill {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.125rem 0.5rem;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.25;
	border-radius: var(--nc-radius);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: hsl(217deg 100% 40%);
	border: 1px solid hsl(217deg 55% 50% / 0.24);
	text-decoration: none !important;
	background: hsl(217deg 62% 50% / 0.105);
	overflow-wrap: anywhere;
}

.nc-fpill:hover {
	background: hsl(217deg 60% 50% / 0.198);
	text-decoration: none !important;
}

.nc-pagehead__clear {
	font-size: 10px;
	font-weight: 500;
	color: var(--nc-muted) !important;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none !important;
	margin-left: 0.25rem;
}

.nc-pagehead__clear:hover {
	color: var(--nc-fg) !important;
	text-decoration: none !important;
}

/* Мрежа topic cards */
.nc-tgrid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	padding-bottom: 3rem;
}

@media (min-width: 640px) {
	.nc-tgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.nc-tgrid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.nc-tgrid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.nc-tcard {
	position: relative;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--nc-border);
	border-radius: var(--nc-radius);
	background: hsl(0, 0%, 100%);
	overflow: hidden;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nc-tcard:hover {
	border-color: hsl(217deg 40% 78%);
	box-shadow: var(--nc-shadow-md);
}

.nc-tcard__rank {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 1.75rem;
	height: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	background: var(--nc-primary);
	font-family: var(--nc-font-body);
}

.nc-tcard__media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: hsl(0, 0%, 93%);
	overflow: hidden;
}

.nc-tcard__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nc-tcard__grad {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(
		to top,
		hsl(0deg 0% 12% / 0.9) 0%,
		hsl(0deg 0% 12% / 0.35) 50%,
		transparent 100%
	);
}

.nc-tcard__cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.75rem;
	z-index: 1;
}

.nc-tcard__eyebrow {
	margin: 0 0 0.2rem;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: hsl(0, 0%, 100% / 0.88);
	line-height: 1.2;
}

.nc-tcard__title {
	margin: 0;
	font-family: var(--nc-font-head);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
}

.nc-tcard__title a {
	color: inherit;
	text-decoration: none;
}

.nc-tcard__title a:hover {
	text-decoration: none;
}

.nc-tcard__meta {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.375rem;
	font-size: 10px;
	line-height: 1;
	color: hsl(0, 0%, 100% / 0.75);
}

.nc-tcard__mi {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.nc-tcard__ico {
	width: 0.625rem;
	height: 0.625rem;
	flex-shrink: 0;
	vertical-align: middle;
}

.nc-empty.nc-empty--big {
	max-width: 26rem;
	margin-inline: auto;
	text-align: center;
	padding: 5rem 1.5rem;
	border-radius: var(--nc-radius);
	border: 1px dashed var(--nc-border);
	background: hsl(0 0% 98%);
	color: var(--nc-muted);
}

/* Pagehead: подравняване като Lovable (flex items-center вляво) */
.nc-pagehead__top--lov {
	align-items: flex-end;
}

.nc-pagehead__left--lov {
	align-items: center;
}

/* Макро секции + банер */
.nc-feedstack {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding-bottom: 3rem;
}

/* Рекламен банер — zS */
.nc-adlov {
	display: flex;
	justify-content: center;
	padding: 1rem 0;
}

.nc-adlov__box {
	position: relative;
	display: block;
	width: 100%;
	max-width: 728px;
	height: 90px;
	overflow: hidden;
	border: 1px solid var(--nc-border);
	border-radius: var(--nc-radius);
	background: hsl(0 0% 100%);
	text-decoration: none;
	color: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nc-adlov__box:hover {
	border-color: hsl(217deg 55% 55% / 0.35);
}

.nc-adlov__grid {
	position: absolute;
	inset: 0;
	opacity: 0.03;
	background-image: repeating-linear-gradient(
		45deg,
		var(--nc-fg) 0,
		var(--nc-fg) 1px,
		transparent 0,
		transparent 8px
	);
	background-size: 8px 8px;
	pointer-events: none;
}

.nc-adlov__pin {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--nc-primary);
	pointer-events: none;
}

.nc-adlov__pin--l {
	left: 0;
}

.nc-adlov__pin--r {
	right: 0;
}

.nc-adlov__inner {
	position: relative;
	display: flex;
	height: 100%;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	padding: 0 1.5rem;
}

.nc-adlov__ico {
	display: none;
	align-items: center;
	justify-content: center;
}

@media (min-width: 640px) {
	.nc-adlov__ico {
		display: flex;
	}
}

.nc-adlov__ico-sq {
	display: block;
	width: 14px;
	height: 14px;
	border: 2px solid hsl(217deg 45% 56% / 0.25);
}

.nc-adlov__copy {
	text-align: center;
}

.nc-adlov__t {
	margin: 0;
	font-family: var(--nc-font-body);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--nc-fg);
}

.nc-adlov__s {
	display: block;
	margin-top: 0.125rem;
	font-size: 11px;
	line-height: 1.35;
	letter-spacing: 0.06em;
	color: var(--nc-muted);
}

.nc-adlov__mail {
	font-weight: 600;
	color: var(--nc-primary);
}

.nc-adlov__bars {
	display: none;
	align-items: center;
	gap: 0.25rem;
}

@media (min-width: 640px) {
	.nc-adlov__bars {
		display: flex;
	}
}

.nc-adlov__bars span:nth-child(1) {
	width: 6px;
	height: 24px;
	background: hsl(217deg 50% 50% / 0.14);
	border-radius: 1px;
}

.nc-adlov__bars span:nth-child(2) {
	width: 6px;
	height: 32px;
	background: hsl(217deg 50% 50% / 0.26);
	border-radius: 1px;
}

.nc-adlov__bars span:nth-child(3) {
	width: 6px;
	height: 20px;
	background: hsl(217deg 50% 50% / 0.14);
	border-radius: 1px;
}

.nc-adlov__tag {
	position: absolute;
	bottom: 0.25rem;
	right: 0.75rem;
	font-size: 8px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: hsl(217deg 8% 50% / 0.42);
	font-family: var(--nc-font-body);
}

/* Заглавие на макро секция */
.nc-macsec__head {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 1rem;
	flex-wrap: wrap;
}

.nc-macsec__emoji {
	font-size: 1.125rem;
	line-height: 1;
}

.nc-macsec__title {
	margin: 0;
	font-family: var(--nc-font-body);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--nc-fg);
	line-height: 1.2;
}

.nc-macsec__line {
	flex: 1 1 3rem;
	height: 1px;
	background: var(--nc-border);
	min-width: 1rem;
}

.nc-macsec__count {
	font-size: 10px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--nc-muted);
	white-space: nowrap;
}

.nc-macsec__chev {
	flex-shrink: 0;
	line-height: 0;
	opacity: 0.75;
	color: var(--nc-muted);
}

/* Мрежа MS картчици */
.nc-msgrid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

@media (min-width: 640px) {
	.nc-msgrid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.nc-msgrid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (min-width: 1280px) {
	.nc-msgrid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

/* MS карта — как MS({}) в референцията */
.nc-ms {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--nc-border);
	border-radius: var(--nc-radius);
	background: hsl(0 0% 100%);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nc-ms:hover {
	border-color: hsl(217deg 45% 60% / 0.42);
	box-shadow: var(--nc-shadow-md);
}

.nc-ms__rank {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 12;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	font-family: var(--nc-font-body);
	font-size: 11px;
	font-weight: 700;
	color: var(--nc-primary-fg);
	background: var(--nc-primary);
}

.nc-ms__media {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: hsl(0 0% 94%);
}

.nc-ms__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.group.nc-ms:hover .nc-ms__img {
	transform: scale(1.045);
}

.nc-ms__grad {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		hsl(0deg 0% 8% / 0.92) 0%,
		hsl(0deg 0% 8% / 0.38) 50%,
		transparent 100%
	);
	pointer-events: none;
}

.nc-ms__cap {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	padding: 0.75rem;
	z-index: 2;
}

.nc-ms__name {
	margin: 0;
	font-family: var(--nc-font-head);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.25;
	color: hsl(0 0% 100%);
}

.nc-ms__name a {
	color: inherit;
	text-decoration: none;
}

.nc-ms__name a:hover {
	text-decoration: none;
}

.nc-ms__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-top: 0.3rem;
}

.nc-ms__mi {
	display: inline-flex;
	align-items: center;
	gap: 0.22rem;
	font-size: 10px;
	line-height: 1;
	color: hsl(0 0% 100% / 0.72);
	font-family: var(--nc-font-body);
}

.nc-ms__mic {
	width: 11px;
	height: 11px;
	flex-shrink: 0;
}

.nc-ms__trend {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 13;
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.15rem 0.35rem;
	background: hsl(0deg 74% 50%);
	color: hsl(0 0% 100%);
	box-shadow: 0 2px 4px hsl(0 0% 0% / 0.12);
}

.nc-ms__trend-ico {
	display: inline-block;
	width: 11px;
	height: 11px;
	vertical-align: middle;
}

.nc-ms__trend span:last-child {
	font-size: 9px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.nc-ms__toolbar {
	position: relative;
	display: flex;
	align-items: center;
	height: 1.75rem;
	padding: 0 0.75rem;
	border-bottom: 1px solid var(--nc-border);
	background: hsl(0 0% 96% / 0.96);
	z-index: 5;
}

.nc-ms__sortbtn {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	margin: 0;
	padding: 0;
	cursor: pointer;
	border: none;
	font-family: var(--nc-font-body);
	font-size: 10px;
	font-weight: 500;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--nc-muted);
	background: transparent;
}

.nc-ms__sortbtn:hover {
	color: var(--nc-fg);
}

.nc-ms__chev {
	flex-shrink: 0;
	vertical-align: middle;
	transition: transform 0.2s ease;
}

.nc-ms.nc-ms--open .nc-ms__chev {
	transform: rotate(180deg);
}

.nc-ms__toolfill {
	flex: 1 1 auto;
	max-width: 60%;
	min-width: 4rem;
	height: 1px;
	margin-left: auto;
	background: var(--nc-border);
}

.nc-ms__sortpop {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 25;
	overflow: hidden;
	border: 1px solid var(--nc-border);
	border-top-width: 0;
	background: hsl(0 0% 100%);
	box-shadow: 0 10px 26px hsl(217deg 8% 6% / 0.09);
}

.nc-ms__sortpop[hidden] {
	display: none !important;
}

.nc-ms__sortopt {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0.4rem 0.75rem;
	border: 0;
	cursor: pointer;
	text-align: left;
	font-family: var(--nc-font-body);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: hsl(0 0% 100%);
	color: var(--nc-fg);
	transition: background 0.15s ease;
}

.nc-ms__sortopt:hover {
	background: hsl(0 0% 93%);
}

.nc-ms__sortopt.is-active {
	font-weight: 700;
	color: var(--nc-primary);
	background: hsl(217deg 100% 50% / 0.055);
}

.nc-ms__list {
	flex: 1 1 auto;
	max-height: 14rem;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	padding: 0;
}

.nc-ms__list.topic-card-scroll {
	max-height: 14rem;
}

.nc-ms__row {
	display: flex;
	flex-direction: row;
	gap: 0.375rem;
	width: 100%;
	padding: 0.625rem 0.75rem;
	margin: 0;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	border: 0;
	border-bottom: 1px solid hsl(217deg 8% 50% / 0.09);
	box-sizing: border-box;
	transition: background 0.14s ease, color 0.14s ease;
	color: inherit;
	background: hsl(0 0% 100%);
}

.nc-ms__row:last-child {
	border-bottom: 0;
}

.nc-ms__row:hover {
	background: hsl(217deg 100% 50% / 0.065);
	text-decoration: none;
}

.nc-ms__rn {
	flex-shrink: 0;
	min-width: 1rem;
	margin-top: 0.0625rem;
	font-family: var(--nc-font-body);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.3;
	text-align: right;
	color: hsl(217deg 8% 50% / 0.38);
}

.nc-ms__body {
	flex: 1 1 auto;
	min-width: 0;
}

.nc-ms__pt {
	display: block;
	font-family: var(--nc-font-head);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.35;
	transition: color 0.15s ease;
}

.nc-ms__row:hover .nc-ms__pt {
	color: var(--nc-primary);
}

.nc-ms__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.2rem;
}

.nc-ms__pill {
	display: inline-flex;
	align-items: center;
	gap: 0.0625rem;
	font-size: 9px;
	font-weight: 500;
	line-height: 1;
	color: hsl(217deg 8% 40% / 0.94);
	font-family: var(--nc-font-body);
}

.nc-ms__src {
	flex: 1 1 auto;
	min-width: 2rem;
	margin-left: 0;
	font-size: 9px;
	text-align: right;
	color: hsl(217deg 8% 50% / 0.55);
}

.nc-ms__bar {
	height: 2px;
	margin-top: auto;
	background: linear-gradient(
		90deg,
		hsl(217deg 62% 50% / 0.92) 0%,
		hsl(217deg 62% 50% / 0.92) 100%
	);
	transform-origin: left center;
	transform: scaleX(0);
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.nc-ms:hover .nc-ms__bar {
	transform: scaleX(1);
}

/* Празни състояния като Lovable py-24 */
.nc-empty.nc-empty--lov.nc-empty--big {
	padding: 6rem 1.25rem;
	border-style: dashed;
}

.nc-emptylov__circle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-inline: auto;
	margin-bottom: 0.75rem;
	border: 2px solid var(--nc-border);
	border-radius: 50%;
}

.nc-emptylov__ico {
	width: 20px;
	height: 20px;
	opacity: 0.52;
	vertical-align: middle;
}

.nc-emptylov__t {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.35;
	color: hsl(217deg 8% 52%);
	margin: 0 0 0.25rem;
}

.nc-emptylov__d {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.35;
	color: hsl(217deg 8% 50% / 0.66);
}

.nc-tgrid--solo {
	padding-bottom: 2rem;
}

/* ── Responsive: мобилна паритетност + safe-area (целия сайт) ── */

html {
	overflow-x: hidden;
}

@media (max-width: 767px) {
	.nc-pagehead__top {
		align-items: flex-start;
	}

	.nc-pagehead__filters {
		width: 100%;
		justify-content: flex-start;
	}
}

@media (max-width: 380px) {
	.nc-strip__label {
		flex: 0 0 120px;
		width: 120px;
		max-width: 120px;
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

	.nc-strip__label span {
		font-size: 10px;
		letter-spacing: 0.04em;
	}
}

.nc-adlov__inner {
	padding-left: clamp(0.5rem, 3vw, 1.5rem);
	padding-right: clamp(0.5rem, 3vw, 1.5rem);
}

@media (max-width: 480px) {
	.nc-adlov__t {
		font-size: 11px;
	}

	.nc-adlov__s {
		font-size: 10px;
	}
}

@media (max-width: 420px) {
	.nc-adlov__box {
		height: auto;
		min-height: 90px;
		padding-bottom: 1rem;
	}

	.nc-adlov__tag {
		bottom: 0.35rem;
	}
}

.nc-footer .nc-footer__inner {
	padding-left: max(1rem, env(safe-area-inset-left, 0px));
	padding-right: max(1rem, env(safe-area-inset-right, 0px));
	padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767px) {
	.nc-footer .nc-footer__inner {
		flex-direction: column;
		align-items: flex-start;
	}

	.nc-footer__nav {
		width: 100%;
		justify-content: flex-start;
	}
}

@media (max-width: 479px) {
	.nc-intro {
		padding: 1rem !important;
	}
}

.nc-content img,
.nc-article__hero img {
	height: auto;
	max-width: 100%;
}

.nc-shell .nc-section-title,
.nc-article .nc-section-title {
	font-size: clamp(1.25rem, 5vw, 2rem) !important;
	line-height: 1.25;
}

.nc-shell .nc-section-title--hero {
	font-size: clamp(1.15rem, 4.2vw, 1.75rem) !important;
}

.nc-pagination a,
.nc-pagination span {
	display: inline-flex;
	min-height: 2.75rem;
	min-width: 2.75rem;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.nc-ms__src {
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (max-width: 767px) {
	.nc-top__field {
		font-size: 16px;
		height: 2.5rem;
		line-height: 1.5rem;
	}
}

@media (max-width: 360px) {
	.nc-macsec__line {
		display: none;
	}

	.nc-macsec__head {
		column-gap: 0.375rem;
	}
}
