/* =========================================================
   Author Block – Intertronics
   ---------------------------------------------------------
   [itx_post_author]: the article author card in the Insights
   Single and Resource Single sidebars, and
   [itx_team_member_content]: the "Content by…" card on
   team member pages (inc/post-types/team-members/authors.php).
   Its tabs are styled by css/related-content.css.

   The card matches the other sidebar panels: .card for the
   surface (style.css), an h5 heading and the primary button
   (.w-btn.us-btn-style_1). Change the inner details in one
   place: the --itx-author-* tokens.
   ========================================================= */

.itx-author-card {
	--itx-author-accent: var(--color-content-primary, #f27a21);
	--itx-author-heading: var(--color-content-heading, #303030);
	--itx-author-muted: var(--color-intertronics-grey, #58595b);
	--itx-author-icon-bg: var(--color-content-bg-alt, #f7f7f7);
	--itx-author-border: rgba(17, 17, 17, 0.07);
	--itx-author-photo: 4.5rem;

	/* Surface, padding, radius and shadow come from .card (style.css). */
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}

/* Heading: the theme's h5, as "Contents" and "Download". */
.itx-author-card__heading {
	margin: 0;
}

/* Photo, name and job title */
.itx-author-card__head {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.itx-author-card .itx-author-card__photo {
	flex-shrink: 0;
	width: var(--itx-author-photo);
	height: var(--itx-author-photo);
	object-fit: cover;
	border-radius: 50% !important; /* outranks the site-wide image radius */
}

.itx-author-card__id {
	min-width: 0;
}

.itx-author-card__name {
	display: block;
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--itx-author-heading);
	text-decoration: none;
}

a.itx-author-card__name:hover,
a.itx-author-card__name:focus-visible {
	color: var(--itx-author-accent);
}

.itx-author-card__job {
	margin: 0.25rem 0 0;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--itx-author-muted);
}

/* Bio: body text, as the Download panel's description. */
.itx-author-card__bio {
	margin: 0;
}

/* LinkedIn and email: small round icon buttons. */
.itx-author-card__links {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.itx-author-card__links li {
	margin: 0;
}

.itx-author-card__links a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1rem;
	color: var(--itx-author-heading);
	background: var(--itx-author-icon-bg);
	border-radius: 50%;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.itx-author-card__links a:hover,
.itx-author-card__links a:focus-visible {
	color: #fff;
	background: var(--itx-author-accent);
}

/* "More articles by …" is the theme's primary button (.w-btn.us-btn-style_1). */
.itx-author-card__more {
	margin-top: 0.25rem;
}

.itx-author-card :focus-visible {
	outline: 2px solid var(--itx-author-accent);
	outline-offset: 2px;
}

/* ---------------------------------------------------------
   "Content by …" on team member pages: Related Content tabs
   (css/related-content.css) in a .card from the shortcode,
   so a team member with nothing published shows no box.
   --------------------------------------------------------- */

/* An h2 for the page outline, sized as Related Content's h3. */
.itx-team-member-content .itx-related-content__heading {
	font-size: var(--h3-font-size);
}

/* The Email icon in the team member header's Socials element:
   Impreza's brand colour for email is a flat grey (#96a2a8),
   so use the site's contact colour for the icon and its
   hover fill instead. */
.single-itx_team_members .w-socials.color_brand .w-socials-item.email .w-socials-item-link {
	color: var(--color-brand-contact, #7771b1);
}

.single-itx_team_members .w-socials-item.email .w-socials-item-link-hover {
	background: var(--color-brand-contact, #7771b1);
}

/* ---------------------------------------------------------
   Motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.itx-author-card__links a {
		transition: none;
	}
}
