/*
 * Keyboard and screen-reader help that mouse and touch readers never see
 * (from PR #136 / issue #127, trimmed for the minor-changes UI pass).
 *
 * Visible keyboard focus: 17 rules in the theme CSS remove the outline
 * (bootstrap.css x11, component.css x2, slick.css, typography.css x3) and none
 * restored it, so tabbing through the homepage showed no focus at all
 * (measured 2026-11-18). `!important` is deliberate: this must beat every one
 * of those selectors.
 *
 * Links and buttons only. Browsers match :focus-visible on links and buttons
 * for the keyboard alone, but on text fields for a tap or click too, so a ring
 * on inputs would appear for every reader tapping the login, comment or
 * contact form. Text fields keep the theme's own focus look and the caret.
 * The login and sign-up fields carry tabindex="1"/"2", hence the :not()s.
 */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:not(input):not(textarea):not(select):focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
	outline: 3px solid #d3147c !important; /* the logo's magenta */
	outline-offset: 2px !important;
}
/* Magenta on the charcoal bars is 3.04:1; white is over 13:1. */
.ku-util a:focus-visible,
.ku-sections a:focus-visible,
footer a:focus-visible,
footer summary:focus-visible,
footer input[type="submit"]:focus-visible {
	outline-color: #ffffff !important;
}
/* Inset ring where a parent clips anything outside its box (section row,
   trending strip, drawer rows, the tab bar on the screen's bottom edge, photo
   links in <figure>): an outer ring there is not painted. */
.ku-sections__list a:focus-visible,
.ku-trend__chip:focus-visible,
.ku-drawer__list a:focus-visible,
.ku-tabs a:focus-visible,
.ku-tabs button:focus-visible,
figure a:focus-visible,
.slick-slide a:focus-visible,
.top-news-slide a:focus-visible,
.kf_news_text a:focus-visible,
.kf_blog_modren_text a:focus-visible {
	outline-offset: -3px !important;
}

/* "Skip to the news" (layouts/header.blade.php): the first Tab stop, off
   screen until the keyboard focuses it. */
.ku-skip {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 10000;
	padding: 12px 16px;
	background: #d3147c;
	color: #ffffff !important;
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	border-radius: 4px;
	text-decoration: none;
}
.ku-skip:focus {
	top: 8px;
}
