/*
 * WordPress bridge — glue the static Vi Feerie design didn't need.
 *
 * The Underscores base stylesheet (style.css) is dequeued on the front end
 * because its unscoped `a`, `button` and `input` rules out-specify the Vi
 * Feerie component classes (e.g. input[type="search"] beats .search__input).
 * This file restores only the few WordPress-specific utilities that style.css
 * provided and the Vi Feerie CSS does not.
 */

/* --- Accessibility: hide the skip link until focused (from Underscores) --- */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* --- Admin bar: keep the sticky header clear of the WP toolbar (logged-in) --- */
.admin-bar .site-header {
	top: calc(32px - (var(--topbar-h) + var(--midbar-h)));
}

@media screen and (max-width: 782px) {
	.admin-bar .site-header {
		top: calc(46px - (var(--topbar-h) + var(--midbar-h)));
	}
}

/* --- WPML footer language switcher ---
 * WPML tự chèn <div class="wpml-ls-statics-footer"> ở cuối footer
 * (option "Language switcher in the footer" trong WPML → Languages).
 * Vi Feerie có switcher riêng ở topbar + drawer rồi, cái này thừa.
 * Nên tắt cả setting WPML; CSS này giữ làm backup phòng khi quên.
 */
.wpml-ls-statics-footer,
.wpml-ls-sidebars-sidebar-footer {
	display: none !important;
}
