/**
 * Title widget styles.
 *
 * Loaded only on documents that contain this widget. Alignment is driven by
 * `text-align` so Elementor's responsive selectors win at each breakpoint.
 */

.fast-title {
	--fast-title-gap: 0.5rem;
	--fast-title-pad: 1rem;
	--fast-title-accent: #2271b1;
	--fast-title-bg: #f3f4f6;
	--fast-title-border: #d1d5db;
	--fast-title-eyebrow: #6b7280;
	--fast-title-subtitle: #4b5563;
	--fast-title-radius: 8px;
	--fast-title-mark: var(--fast-title-accent);
	--fast-title-icon-color: currentColor;
	--fast-title-icon-size: 1em;
	--fast-title-icon-gap: 0.5rem;
	--fast-title-icon-bg: transparent;
	--fast-title-icon-pad: 0.35em;
	--fast-title-icon-radius: 8px;
	--fast-title-grad-from: #2271b1;
	--fast-title-grad-to: #d63638;
	--fast-title-grad-angle: 90deg;
	--fast-title-pattern-repeat: repeat;
	--fast-title-pattern-size: 160px;
	--fast-title-pattern-position: center;

	box-sizing: border-box;
	display: block;
	max-width: 100%;
	min-width: 0;
	text-align: left;
}

.fast-title--center {
	text-align: center;
}

.fast-title--right {
	text-align: right;
}

.fast-title--justify {
	text-align: justify;
}

.fast-title__eyebrow,
.fast-title__text,
.fast-title__subtitle {
	margin: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-wrap: break-word;
}

.fast-title__eyebrow {
	display: inline-block;
	margin-bottom: var(--fast-title-gap);
	color: var(--fast-title-eyebrow);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.4;
}

.fast-title__text {
	color: inherit;
	line-height: 1.35;
}

.fast-title__label {
	color: inherit;
}

.fast-title__mark {
	color: var(--fast-title-mark);
}

.fast-title__row {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--fast-title-icon-gap);
	max-width: 100%;
	vertical-align: top;
}

.fast-title--icon-right .fast-title__row {
	flex-direction: row-reverse;
}

.fast-title--icon-top .fast-title__row {
	flex-direction: column;
}

.fast-title__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	color: var(--fast-title-icon-color);
	font-size: var(--fast-title-icon-size);
	line-height: 1;
}

.fast-title__icon i,
.fast-title__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.fast-title--icon-bg .fast-title__icon {
	padding: var(--fast-title-icon-pad);
	background: var(--fast-title-icon-bg);
	border-radius: var(--fast-title-icon-radius);
}

.fast-title--gradient .fast-title__label {
	background-image: linear-gradient(var(--fast-title-grad-angle), var(--fast-title-grad-from), var(--fast-title-grad-to));
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
	.fast-title--gradient .fast-title__label {
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		-webkit-text-fill-color: transparent;
	}

	.fast-title--gradient:not(.fast-title--pattern) .fast-title__mark {
		background: none;
		color: var(--fast-title-mark);
		-webkit-text-fill-color: var(--fast-title-mark);
	}

	.fast-title--pattern .fast-title__label {
		background-image: var(--fast-title-pattern);
		background-repeat: var(--fast-title-pattern-repeat);
		background-size: var(--fast-title-pattern-size);
		background-position: var(--fast-title-pattern-position);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		-webkit-text-fill-color: transparent;
	}

	.fast-title--pattern .fast-title__mark {
		background: none;
		color: transparent;
		-webkit-text-fill-color: transparent;
	}
}

.fast-title__text a {
	color: inherit;
	text-decoration: none;
	overflow-wrap: inherit;
}

.fast-title__text a:hover,
.fast-title__text a:focus {
	text-decoration: underline;
}

.fast-title__text a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 0.15em;
}

.fast-title__subtitle {
	margin-top: var(--fast-title-gap);
	color: var(--fast-title-subtitle);
	font-size: 1rem;
	line-height: 1.5;
}

/* 1. Classic: stacked plain text. */
.fast-title--style-classic .fast-title__text {
	font-weight: 700;
}

/* 2. Underline: accent follows wrapped lines, not a full-width bar. */
.fast-title--style-underline .fast-title__text {
	display: inline;
	padding-bottom: 0.15em;
	line-height: 1.5;
	border-bottom: 3px solid var(--fast-title-accent);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* 3. Accent: vertical bar on the start edge. */
.fast-title--style-accent {
	padding-inline-start: 1rem;
	border-inline-start: 4px solid var(--fast-title-accent);
}

/* 4. Boxed: filled panel. */
.fast-title--style-boxed {
	width: 100%;
	padding: var(--fast-title-pad);
	background: var(--fast-title-bg);
	border-radius: var(--fast-title-radius);
}

/* 5. Outlined: framed panel. */
.fast-title--style-outlined {
	width: 100%;
	padding: var(--fast-title-pad);
	border: 1px solid var(--fast-title-border);
	border-radius: var(--fast-title-radius);
}

/* 6. Badge: pill eyebrow. */
.fast-title--style-badge .fast-title__eyebrow {
	padding: 0.2em 0.7em;
	border-radius: 999px;
	background: var(--fast-title-accent);
	color: #fff;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* 7. Highlight: mark follows each line with readable spacing. */
.fast-title--style-highlight .fast-title__text {
	display: inline;
	padding: 0.12em 0.28em;
	line-height: 1.55;
	background-color: var(--fast-title-accent);
	color: #fff;
	border-radius: var(--fast-title-radius);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.fast-title--style-highlight .fast-title__text a:hover,
.fast-title--style-highlight .fast-title__text a:focus {
	text-decoration-color: currentColor;
}

/* 8. Stacked: uppercase eyebrow, tighter title. */
.fast-title--style-stacked .fast-title__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.16em;
}

.fast-title--style-stacked .fast-title__text {
	font-weight: 800;
}

/* 9. Divider: rule under the title block. */
.fast-title--style-divider .fast-title__text {
	padding-bottom: 0.45em;
	border-bottom: 1px solid var(--fast-title-accent);
}

/* 10. Display: large, tight tracking. */
.fast-title--style-display .fast-title__eyebrow {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.22em;
}

.fast-title--style-display .fast-title__text {
	font-size: clamp(1.75rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.15;
	overflow-wrap: anywhere;
}

/* Upright glyphs, read from top to bottom. */
.fast-title--writing-upright .fast-title__text {
	display: inline-block;
	writing-mode: vertical-lr;
	text-orientation: upright;
	letter-spacing: 0.12em;
	line-height: 1.2;
	overflow-wrap: normal;
	word-wrap: normal;
	word-break: normal;
	max-width: none;
	vertical-align: top;
}

/* Rotated line that still reads downward. */
.fast-title--writing-sideways .fast-title__text {
	display: inline-block;
	writing-mode: vertical-rl;
	text-orientation: mixed;
	line-height: 1.2;
	overflow-wrap: normal;
	word-wrap: normal;
	word-break: normal;
	max-width: none;
	vertical-align: top;
}
