/**
 * Post byline ([ecomt_post_byline], WP\Post_Byline).
 *
 * Avatar on the left, centred on the text, one or two lines of text on the right: the author (with
 * their job title below, or beside it when there is a technical reviewer) and
 * the "Revisión técnica" line with a dark-blue tick. All of it is set in the
 * heading font (Exo 2) at 500, the weight Kadence loads; the name stands out
 * by colour. The font var() has no comma fallback because WP Rocket's Remove
 * Unused CSS breaks the comma form.
 */

.ecomt-byline {
	--ecomt-byline-ink: #051323;
	--ecomt-byline-muted: #5b6876;
	--ecomt-byline-check: #002395;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 1rem;
	font-family: var(--global-heading-font-family);
	font-size: 0.889rem; /* 16px */
	font-weight: 500;
	line-height: 1.35;
}

.ecomt-byline .ecomt-byline__avatar {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	margin: 0;
	border: 1px solid #e7e9ec;
	border-radius: 8px;
	background-color: #fff;
	object-fit: cover;
}

.ecomt-byline__text {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 0.1em;
}

/* Two classes deep so it beats Kadence's `.single-content p` bottom margin
   whatever order the stylesheets load in. */
.ecomt-byline .ecomt-byline__text p {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	font-weight: inherit;
}

.ecomt-byline__author,
.ecomt-byline__title,
.ecomt-byline__review {
	color: var(--ecomt-byline-muted);
}

.ecomt-byline__name {
	color: var(--ecomt-byline-ink);
}

/* Without a reviewer the name stands alone on its line, a size up. */
.ecomt-byline:not(.ecomt-byline--reviewed) .ecomt-byline__name {
	font-size: 1.125em;
}

.ecomt-byline__check {
	width: 1.05em;
	height: 1.05em;
	margin-right: 0.3em;
	color: var(--ecomt-byline-check);
	vertical-align: -0.15em;
}

@media (max-width: 767px) {
	.ecomt-byline {
		font-size: 0.833rem; /* 15px */
	}

	.ecomt-byline .ecomt-byline__avatar {
		width: 48px;
		height: 48px;
	}

	/* "Name · Job title" does not fit one line here: the author's job title
	   drops to its own line, as it does without a reviewer. */
	.ecomt-byline__author .ecomt-byline__sep {
		display: none;
	}

	.ecomt-byline__author .ecomt-byline__role {
		display: block;
	}
}
