/*
Theme Name:   Hello Elementor Child — Redline Transit
Theme URI:    https://redlinetransitnemt.com/
Description:  Child theme of Hello Elementor carrying the Redline Transit design tokens, typography and base styles. All section markup lives in the Redline Elements plugin, so the design survives a theme change.
Author:       Sentral Media Group
Author URI:   https://sentralbrands.com/
Template:     hello-elementor
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  hello-elementor-child
*/

/* -------------------------------------------------------------------------
 * Base typography. The tokens themselves ship with the plugin so the design
 * still holds if this theme is swapped out; this file only applies them to
 * the theme's own elements (post content, comments, widgets).
 * ---------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
 * Base typography.
 *
 * Every rule below is wrapped in :where(), which has ZERO specificity. That
 * matters: the theme must never win against Elementor. Anything a user sets
 * in Elementor — Site Settings globals, or a widget's Style tab — overrides
 * these without needing !important, and so does the plugin stylesheet.
 *
 * The values themselves come from the same tokens, which read Elementor's
 * globals first, so the theme stays in step with Site Settings rather than
 * competing with it.
 * ---------------------------------------------------------------------- */

:where(body) {
	font-family: var(--rl-font-body, "Inter", system-ui, sans-serif);
	color: var(--rl-body, #525252);
	background-color: var(--rl-surface, #ffffff);
	font-size: 1rem;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

:where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--rl-font-heading, "Manrope", system-ui, sans-serif);
	color: var(--rl-ink, #1a1a1a);
	letter-spacing: -0.025em;
	line-height: 1.15;
}

:where(h1) { font-size: var(--rl-h1, 3.6rem); font-weight: 800; }
:where(h2) { font-size: var(--rl-h2, 2.6rem); font-weight: 700; }
:where(h3) { font-size: var(--rl-h3, 1.25rem); font-weight: 700; }

:where(a) { color: var(--rl-primary, #b71f2e); }

/* Accessible focus ring. Not wrapped: a visible focus ring is a baseline
   requirement, not a style preference, and it should survive theming. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--rl-primary, #b71f2e);
	outline-offset: 2px;
}

.skip-link:focus {
	background: var(--rl-primary, #b71f2e);
	color: #fff;
	border-radius: 0 0 0.5rem 0;
}

/* Post content rhythm for blog and legal pages built in the editor. */
:where(.page-content, .entry-content) > * + * { margin-top: 1.25rem; }

:where(img) { max-width: 100%; height: auto; }

/* Contact page: keep the email address on one line. */
.rl-contact .rl-contact__details {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.rl-contact .rl-contact__detail {
	padding-left: 16px;
	padding-right: 16px;
}

.rl-contact a.rl-contact__value[href^="mailto:"] {
	white-space: nowrap;
}
