/* NCOKSSMP – поправки за достъпност (WCAG 2.1 AA) */

/* 1. Контраст (WCAG 1.4.3)
 * Сивосиният #8893b9 (2.89–3.03:1) и #7884ac (3.68:1) от темата се заменят с
 * #5a6488 (5.8:1 върху бяло, 5.5:1 върху #f6faff). Селекторите са взети от
 * master.min.css на темата. */
.themestek-pre-header-wrapper.ts-textcolor-dark .top-contact li,
.themestek-pre-header-wrapper.ts-textcolor-dark .top-contact li a,
footer a,
.footer .ts-textcolor-dark,
.footer .ts-textcolor-dark a,
.tagcloud a,
.ts-entry-meta-wrapper,
.ts-entry-meta-wrapper .ts-meta-line a,
.themestek-box .themestek-box-category a,
.ts-testimonialbox-style-4 blockquote.themestek-testimonial-text,
.sidebar .themestek_widget_list_all_posts li a,
.sidebar .widget_recent_comments li.recentcomments a,
.sidebar .themestek_widget_recent_entries a,
.bbp-topic-permalink,
a.bbp-forum-title {
	color: #5a6488 !important;
}

/* v1.0.1 – открити след инсталацията */
/* Етикети (категории) в новините и екипа: #989898 (2.7:1) */
.taxonomy > span,
.taxonomy > span a {
	color: #5a6488 !important;
}
/* Големите номера „01, 02…“ в инфо кутиите: #c5c5c5 (1.72:1) */
.ts-ihbox-big-number-text {
	color: #767676 !important;
}
/* Навигационна пътека в синята лента: #c2d2ee върху #3368c6 (3.49:1) */
.breadcrumb-wrapper-inner,
.breadcrumb-wrapper-inner a,
.breadcrumb-wrapper-inner span {
	color: #ffffff !important;
}

/* v1.0.2 – синият фон на колоните е в отделен абсолютно позициониран слой
 * (.ts-bg-layer-inner), затова инструменти като WAVE виждат бял текст върху
 * бял фон. Същият цвят се задава и на самата колона/ред; ако фоновият слой
 * не се зареди, текстът остава четим. */
.ts-row .ts-column .vc_column-inner.ts-col-bgcolor-skincolor,
.ts-row .wpb_column .vc_column-inner.ts-col-bgcolor-skincolor,
.ts-row.ts-bgcolor-skincolor {
	background-color: #3368c6 !important;
}

/* v1.0.4 – линк „Към основното съдържание“: скрит, показва се при Tab */
.ncokssmp-skip-link {
	position: absolute;
	left: 8px;
	top: -200px;
	z-index: 100000;
	padding: 10px 16px;
	background: #1a4fa0;
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 0 0 4px 4px;
}
.ncokssmp-skip-link:focus {
	top: 0;
}
/* Целта на линка (main) получава фокус програмно – без рамка около цялата страница */
main[tabindex="-1"]:focus,
#ncokssmp-main:focus {
	outline: none !important;
}

/* v1.0.4 – падащите менюта се отварят и с клавиатура */
#site-navigation li.ncokssmp-open > ul.sub-menu {
	visibility: visible !important;
	opacity: 1 !important;
	transition: none !important;
}

/* v1.0.4 – поле за търсене на страницата с резултати: #999 (2.84:1) */
.search-form .search-field,
.ts-search-form .search-field {
	color: #444 !important;
}
.search-form .search-field::placeholder,
.ts-search-form .search-field::placeholder {
	color: #666 !important;
	opacity: 1;
}

/* Форма за контакт (Contact Form 7): текст и placeholder #999 (2.85:1) */
.wpcf7 input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select {
	color: #444 !important;
}
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder {
	color: #666 !important;
	opacity: 1;
}

/* 2. Линкове в текста да не се различават само по цвят (WCAG 1.4.1) */
.entry-content p a,
.entry-content li a,
.wpb_text_column p a,
.wpb_text_column li a,
.themestek-box-desc p a {
	text-decoration: underline !important;
	text-underline-offset: 2px;
}

/* Тип на файла след линкове към документи – „(PDF)“ */
.ncokssmp-filetype {
	font-size: 0.85em;
	font-weight: normal;
	white-space: nowrap;
	color: inherit;
	opacity: 1;
}

/* 3. Видим фокус за клавиатура (WCAG 2.4.7) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid #1a4fa0 !important;
	outline-offset: 2px !important;
}

/* 4. Скрит текст, достъпен за екранни четци */
.ncokssmp-sr-only,
.menu-toggle .ts-hide {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	display: block !important;
}

/* 5. Бутон за спиране на слайдера (WCAG 2.2.2) */
.ncokssmp-slider-toggle {
	display: inline-block;
	margin: 8px 0;
	padding: 6px 14px;
	font-size: 14px;
	line-height: 1.4;
	color: #fff;
	background: #1a4fa0;
	border: 0;
	border-radius: 3px;
	cursor: pointer;
}
.ncokssmp-slider-toggle:hover {
	background: #123a78;
}

/* 6. Уважаване на настройката „намалено движение“ */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
