/**
 * Kitchens Rx Accessibility — static styles.
 *
 * Only the visually-hidden label helper lives here. All colour-dependent rules
 * (accent contrast override, teal fills, focus ring) are generated in PHP from
 * the configured accent colour and attached as an inline stylesheet, so the same
 * plugin can be used across sites with different brand colours.
 */

/* Keyboard access to dropdown submenus (WCAG 2.1.1). The theme reveals submenus
 * on :hover only; mirror that on keyboard focus so submenu items are reachable
 * by Tab. Scoped to nav menus to avoid affecting other nested lists. */
.sc_layouts_menu li:focus-within > ul,
.sc_layouts_menu_nav li:focus-within > ul,
.menu_main_nav_area li:focus-within > ul,
nav li:focus-within > ul {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Links inside body text must be distinguishable without relying on color alone
 * (WCAG 1.4.1). Underline in-content links, excluding buttons and nav/menu links
 * (which are already distinguishable by their styling). */
.elementor-widget-text-editor a:not([class*="button"]):not([class*="btn"]),
.sc_layouts_content p a:not([class*="button"]):not([class*="btn"]),
article p a:not([class*="button"]):not([class*="btn"]),
p a:not([class*="button"]):not([class*="btn"]):not(.sc_button):not(.sc_button_default) {
	text-decoration: underline !important;
}

/* Visually-hidden labels (screen-reader only) — no visible design change. */
.krx-sr-only {
	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;
}
