/*
 * Author Profile component styles.
 * Loaded only on author archive pages via om_enqueue_scripts() in inc/assets.php.
 * Rules are scoped under .om-author-card-wrapper so they out-specify the block
 * theme's global styles without needing !important (only the outermost wrapper keeps it).
 */
.om-author-card-wrapper {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 3rem 1.5rem !important;
	box-sizing: border-box !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.om-author-card-wrapper .om-author-card {
	max-width: 1104px;
	margin: 0 auto;
	background: transparent;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}
.om-author-card-wrapper .om-author-flex {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}
@media (min-width: 768px) {
	.om-author-card-wrapper .om-author-flex {
		flex-direction: row;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 3rem;
	}
}
.om-author-card-wrapper .om-author-avatar-col {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.om-author-card-wrapper .om-author-avatar-img {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #222222;
}
.om-author-card-wrapper .om-author-info-col {
	flex: 1;
	min-width: 0;
	/* Fill the container so the column wraps instead of sizing to its
	   widest (nowrap) child — prevents horizontal overflow on mobile. */
	width: 100%;
	display: flex;
	flex-direction: column;
	/* Single source of vertical rhythm for the info column. */
	gap: 1.25rem;
}
.om-author-card-wrapper .om-author-header-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	margin-bottom: 0;
}
@media (min-width: 768px) {
	.om-author-card-wrapper .om-author-header-row {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1.5rem;
	}
}
.om-author-card-wrapper .om-author-name-area {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	justify-content: center;
}
@media (min-width: 768px) {
	.om-author-card-wrapper .om-author-name-area {
		justify-content: flex-start;
	}
}
.om-author-card-wrapper .om-author-name {
	font-size: 1.875rem;
	font-weight: 700;
	font-family: 'Cabin', sans-serif;
	color: #ffffff;
	margin: 0;
	line-height: 1.2;
}
@media (min-width: 768px) {
	.om-author-card-wrapper .om-author-name {
		font-size: 2.25rem;
	}
}
.om-author-card-wrapper .om-author-title {
	font-size: 1.125rem;
	font-weight: 600;
	color: #b90302;
	margin: 0.25rem 0 0 0;
}
.om-author-card-wrapper .om-author-contact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.625rem 1.25rem;
	border: 1px solid #b90302;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #b90302;
	background: transparent;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
	cursor: pointer;
	flex-shrink: 0;
	line-height: 1;
}
.om-author-card-wrapper .om-author-contact-btn:hover {
	background: #b90302;
	color: #ffffff;
	text-decoration: none;
}
/*
 * The theme's global `p a::before` rule draws a 1px currentColor underline bar
 * at the bottom of links inside paragraphs. On this button the text turns white
 * on hover, so that bar shows as a white line. Remove it for the button.
 */
.om-author-card-wrapper .om-author-contact-btn::before {
	display: none;
}
.om-author-card-wrapper .om-author-contact-btn svg {
	width: 1rem;
	height: 1rem;
	margin: 0 0.5rem 0 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	flex-shrink: 0;
	display: inline-block;
	vertical-align: middle;
	position: static;
	transform: none;
	top: auto;
}
.om-author-card-wrapper .om-author-contact-btn svg path {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}
.om-author-card-wrapper .om-author-contact-btn span {
	display: inline-block;
	line-height: 1;
	margin: 0;
	padding: 0;
	vertical-align: middle;
	position: static;
	transform: none;
	top: auto;
}
.om-author-card-wrapper .om-author-coverage-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	justify-content: center;
}
@media (min-width: 768px) {
	.om-author-card-wrapper .om-author-coverage-tags {
		justify-content: flex-start;
	}
}
.om-author-card-wrapper .om-author-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.35rem 0.75rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	background-color: #1a1a1a;
	color: #e5e7eb;
	border: 1px solid #222222;
	line-height: 1;
}
.om-author-card-wrapper .om-author-tag span {
	display: inline-block;
	line-height: 1;
	transform: translateY(-0.5px);
}
.om-author-card-wrapper .om-author-bio {
	font-size: 1rem;
	line-height: 1.6;
	color: #9ca3af;
	margin: 0;
}
.om-author-card-wrapper .om-author-bio p {
	color: #ffffff;
	margin: 0 0 0.5rem 0;
}
.om-author-card-wrapper .om-author-bio p:last-child {
	margin-bottom: 0;
}
.om-author-card-wrapper .om-author-stats-row {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0.5rem 1.75rem;
	align-items: center;
	border-top: 1px solid #222222;
	border-bottom: 1px solid #222222;
	/* Equal space above and below the stats text */
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
}
.om-author-card-wrapper .om-author-stat-item {
	font-size: 0.95rem;
	color: #ffffff;
	line-height: 1.4;
	white-space: nowrap;
	margin-bottom: 14px;
}
.om-author-card-wrapper .om-author-stat-value {
	font-weight: 700;
	color: #b90302;
}
.om-author-card-wrapper .om-author-socials-section {
	margin-top: 0.5rem;
	padding-top: 0;
}
.om-author-card-wrapper .om-author-socials-label {
	font-size: 0.65rem;
	font-weight: 700;
	color: #ffffff;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 0.75rem;
}
.om-author-card-wrapper .om-author-socials-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}
.om-author-card-wrapper .om-author-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-direction: row;
	gap: 0.5rem;
	padding: 0.4rem 0.85rem;
	border-radius: 0.5rem;
	font-size: 0.8rem;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.2s ease;
	border: 1px solid #2a2a2a;
	background: #111111;
	color: #d1d5db;
	line-height: 1;
}
.om-author-card-wrapper .om-author-social-link:hover {
	background: #1e1e1e;
	color: #ffffff;
}
.om-author-card-wrapper .om-author-social-link svg {
	width: 1rem;
	height: 1rem;
	flex-shrink: 0;
	margin: 0;
	display: inline-block;
	vertical-align: middle;
	position: static;
	transform: none;
}
.om-author-card-wrapper .om-author-social-link svg path,
.om-author-card-wrapper .om-author-social-link svg circle,
.om-author-card-wrapper .om-author-social-link svg line,
.om-author-card-wrapper .om-author-social-link svg rect {
	position: static;
}
.om-author-card-wrapper .om-author-social-link span {
	display: inline-block;
	line-height: 1;
	transform: translateY(-0.5px);
	vertical-align: middle;
}
