/* RL Section Heading
   ------------------------------------------------------------------ */

.rlsh {
	--rlsh-accent: #e7623d;
	--rlsh-color: #1a1a1a;
	--rlsh-rule: rgba(0, 0, 0, 0.1);
	--rlsh-link: #e7623d;
	--rlsh-bar-h: 3px;
	--rlsh-bar-w: 60px;
	--rlsh-rule-h: 1px;
	--rlsh-space: 22px;
	--rlsh-text-gap: 10px;
	--rlsh-size: 15px;
	--rlsh-tracking: 0.09em;
	--rlsh-weight: 700;
	margin: 0 0 var(--rlsh-space);
	box-sizing: border-box;
}

.rlsh *,
.rlsh *::before,
.rlsh *::after {
	box-sizing: inherit;
}

.rlsh__inner {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
}

.rlsh__title {
	position: relative;
	display: inline-block;
	margin: 0;
	padding: 0 0 var(--rlsh-text-gap);
	color: var(--rlsh-color);
	font-size: var(--rlsh-size);
	font-weight: var(--rlsh-weight);
	letter-spacing: var(--rlsh-tracking);
	line-height: 1.2;
}

.rlsh--upper .rlsh__title {
	text-transform: uppercase;
}

.rlsh__link {
	flex: 0 0 auto;
	padding-bottom: var(--rlsh-text-gap);
	color: var(--rlsh-link);
	font-size: calc(var(--rlsh-size) - 3px);
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: opacity 0.2s ease;
}

.rlsh--upper .rlsh__link {
	text-transform: uppercase;
}

.rlsh__link:hover,
.rlsh__link:focus {
	color: var(--rlsh-link);
	opacity: 0.75;
	text-decoration: none;
}

/* ------------------------------------------------- style: underline
   Accent bar sits under the label only, hairline runs the full row.
   This is the reference look. */

.rlsh--underline .rlsh__inner,
.rlsh--fixed .rlsh__inner,
.rlsh--rule_only .rlsh__inner {
	border-bottom: var(--rlsh-rule-h) solid var(--rlsh-rule);
}

.rlsh--underline .rlsh__title::after,
.rlsh--fixed .rlsh__title::after {
	content: "";
	position: absolute;
	bottom: calc(var(--rlsh-rule-h) * -1);
	height: var(--rlsh-bar-h);
	background: var(--rlsh-accent);
}

.rlsh--underline .rlsh__title::after {
	left: 0;
	right: 0;
	width: auto;
}

/* ----------------------------------------------------- style: fixed
   Accent bar of a set width instead of matching the label. */

.rlsh--fixed .rlsh__title::after {
	left: 0;
	width: var(--rlsh-bar-w);
}

.rlsh--fixed.rlsh--align-center .rlsh__title::after {
	left: 50%;
	transform: translateX(-50%);
}

.rlsh--fixed.rlsh--align-right .rlsh__title::after {
	left: auto;
	right: 0;
}

/* ------------------------------------------------------ style: full
   Accent bar spans the whole row, no hairline. */

.rlsh--full .rlsh__inner {
	border-bottom: var(--rlsh-bar-h) solid var(--rlsh-accent);
}

/* -------------------------------------------------- style: left_bar
   Vertical accent bar to the left of the label. */

.rlsh--left_bar .rlsh__title {
	padding: 0 0 0 14px;
}

.rlsh--left_bar .rlsh__title::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: var(--rlsh-bar-h);
	height: 1em;
	background: var(--rlsh-accent);
	transform: translateY(-50%);
}

.rlsh--left_bar .rlsh__link {
	padding-bottom: 0;
}

/* --------------------------------------------- style: rule_only / plain */

.rlsh--plain .rlsh__title,
.rlsh--plain .rlsh__link {
	padding-bottom: 0;
}

/* ------------------------------------------------------- alignment */

.rlsh--align-center .rlsh__inner {
	justify-content: center;
}

.rlsh--align-center.rlsh--has-link .rlsh__inner {
	justify-content: space-between;
}

.rlsh--align-center .rlsh__title {
	text-align: center;
}

.rlsh--align-right .rlsh__inner {
	justify-content: flex-end;
	flex-direction: row-reverse;
}

.rlsh--align-right .rlsh__title {
	text-align: right;
}

/* ------------------------------------------------------ a11y focus */

.rlsh a:focus-visible {
	outline: 2px solid var(--rlsh-accent);
	outline-offset: 3px;
}

/* ------------------------------------------------------ responsive */

@media (max-width: 480px) {
	.rlsh__inner {
		gap: 12px;
	}

	.rlsh__link {
		font-size: calc(var(--rlsh-size) - 4px);
	}
}
