/*
Theme Name:   Jason Dady Restaurants
Theme URI:    https://jdr.embark-marketing.com/
Description:  Jason Dady Restaurants (Restaurant group, San Antonio) child theme for Hello Elementor. Brand colors and type are seeded into this site's Elementor Kit; edit them in Elementor > Site Settings. Built for the Jason Dady Restaurants network.
Author:       Embark Marketing
Author URI:   https://embark-marketing.com/
Template:     hello-elementor
Version:      1.1.0
Requires at least: 6.5
Requires PHP: 8.1
License:      GNU General Public License v2 or later
Text Domain:  jdr-child
*/

/*
 * Only what Elementor can't set globally. Colors come from the Kit's global
 * variables (--e-global-color-*), so changing a global in Site Settings updates these too.
 */

:root {
	--jdr-radius-control: 4px;
	--jdr-radius-card: 8px;
}

/* Visible keyboard focus on every interactive element (WCAG 2.4.7). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--e-global-color-jdrfocus, currentColor);
	outline-offset: 2px;
}

/* Body links are underlined so they don't rely on color alone (WCAG 1.4.1). */
:where(.elementor-widget-text-editor, .entry-content, .elementor-widget-theme-post-content) a:not(.elementor-button) {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
:where(.elementor-widget-text-editor, .entry-content, .elementor-widget-theme-post-content) a:not(.elementor-button):hover {
	text-decoration-thickness: 2px;
}

::selection {
	background: var(--e-global-color-jdract);
	color: var(--e-global-color-jdracti);
}

/* Even heading rag, no orphans in short paragraphs. */
:where(h1, h2, h3, .elementor-heading-title) { text-wrap: balance; }
:where(p) { text-wrap: pretty; }

/* Hello's skip link, in brand colors. */
.skip-link.screen-reader-text:focus {
	background: var(--e-global-color-jdrsurf);
	color: var(--e-global-color-jdrinks);
	border-radius: var(--jdr-radius-control);
}

@media (prefers-reduced-motion: reduce) {
	html:focus-within { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
