/*!
 * RouteMatic Author Box - front-end styles
 *
 * Everything is scoped under .rmab-box and driven by custom properties so the
 * card can be re-themed from the settings screen without touching this file.
 * Properties that Elementor / Hello Elementor commonly set on descendants of
 * .entry-content are reset explicitly, because this markup is injected into
 * the_content and inherits whatever the page builder put there.
 */

.rmab-box {
	--rmab-accent: #30b57d;
	--rmab-accent-2: #1467b0;
	--rmab-ink: #102030;
	--rmab-muted: #5a6b7c;
	--rmab-surface: #ffffff;
	--rmab-surface-2: #f4f9fc;
	--rmab-line: #e2ebf2;
	--rmab-radius: 18px;
	--rmab-avatar: 132px;
	--rmab-font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	box-sizing: border-box;
	clear: both;
	margin: 48px 0 8px;
	font-family: var(--rmab-font);
	color: var(--rmab-ink);
	text-align: left;
	-webkit-font-smoothing: antialiased;
}

.rmab-box *,
.rmab-box *::before,
.rmab-box *::after {
	box-sizing: border-box;
}

/* ---------------------------------------------------------------- card ---- */

.rmab-box__card {
	position: relative;
	overflow: hidden;
	background: var(--rmab-surface);
	border: 1px solid var(--rmab-line);
	border-radius: var(--rmab-radius);
	box-shadow: 0 1px 2px rgba(16, 32, 48, 0.04), 0 12px 32px -18px rgba(16, 32, 48, 0.28);
}

.rmab-box__card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(90deg, var(--rmab-accent) 0%, var(--rmab-accent-2) 100%);
}

.rmab-box__inner {
	padding: 34px 36px 30px;
}

/* ------------------------------------------------------------- eyebrow ---- */

.rmab-box__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 22px;
	padding: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rmab-muted);
}

.rmab-box__eyebrow::before {
	content: "";
	flex: 0 0 auto;
	width: 22px;
	height: 3px;
	border-radius: 2px;
	background: var(--rmab-accent);
}

/* ---------------------------------------------------------------- body ---- */

.rmab-box__body {
	display: flex;
	align-items: flex-start;
	gap: 28px;
}

.rmab-box__media {
	flex: 0 0 auto;
	width: var(--rmab-avatar);
}

.rmab-box__avatar {
	display: block;
	width: var(--rmab-avatar);
	height: var(--rmab-avatar);
	margin: 0;
	border-radius: 14px;
	background: #114057;
	object-fit: cover;
	object-position: center top;
	box-shadow: 0 8px 20px -12px rgba(16, 32, 48, 0.55);
}

.rmab-box__avatar--round {
	border-radius: 50%;
}

.rmab-box__content {
	flex: 1 1 auto;
	min-width: 0;
}

.rmab-box__name {
	margin: 0;
	padding: 0;
	font-family: var(--rmab-font);
	font-size: 21px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--rmab-ink);
}

.rmab-box__name a {
	color: inherit;
	text-decoration: none;
	background: none;
	box-shadow: none;
	border-bottom: 1px solid transparent;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.rmab-box__name a:hover,
.rmab-box__name a:focus-visible {
	color: var(--rmab-accent-2);
	border-bottom-color: currentColor;
}

.rmab-box__role {
	margin: 6px 0 0;
	padding: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--rmab-accent-2);
}

.rmab-box__bio {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.72;
	color: var(--rmab-muted);
}

.rmab-box__bio p {
	margin: 0 0 12px;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}

.rmab-box__bio p:last-child {
	margin-bottom: 0;
}

/* --------------------------------------------------------------- links ---- */

.rmab-box__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.rmab-box__links li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rmab-box__links li::before,
.rmab-box__links li::marker {
	content: none;
}

.rmab-box__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 7px 14px 7px 12px;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	color: var(--rmab-ink);
	background: var(--rmab-surface-2);
	border: 1px solid var(--rmab-line);
	border-radius: 999px;
	box-shadow: none;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rmab-box__link:hover,
.rmab-box__link:focus-visible {
	color: #ffffff;
	background: var(--rmab-accent-2);
	border-color: var(--rmab-accent-2);
	transform: translateY(-1px);
}

.rmab-box__link svg {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.rmab-box__link:focus-visible,
.rmab-box__name a:focus-visible {
	outline: 2px solid var(--rmab-accent);
	outline-offset: 2px;
}

/* ------------------------------------------------------------- variants ---- */

/* Plain: no card chrome, for themes where the article already sits in a panel. */
.rmab-box--plain .rmab-box__card {
	background: none;
	border: 0;
	border-top: 1px solid var(--rmab-line);
	border-radius: 0;
	box-shadow: none;
}

.rmab-box--plain .rmab-box__card::before {
	content: none;
}

.rmab-box--plain .rmab-box__inner {
	padding: 30px 0 0;
}

/* Tinted: accent-washed panel. */
.rmab-box--tinted .rmab-box__card {
	background: var(--rmab-surface-2);
}

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

@media (max-width: 640px) {
	.rmab-box {
		--rmab-avatar: 96px;
		margin-top: 36px;
	}

	.rmab-box__inner {
		padding: 26px 22px 24px;
	}

	.rmab-box__body {
		gap: 18px;
	}

	.rmab-box__name {
		font-size: 19px;
	}

	.rmab-box__bio {
		font-size: 14.5px;
	}
}

@media (max-width: 480px) {
	.rmab-box__body {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 16px;
	}

	.rmab-box__links {
		justify-content: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rmab-box__link,
	.rmab-box__name a {
		transition: none;
	}

	.rmab-box__link:hover,
	.rmab-box__link:focus-visible {
		transform: none;
	}
}
