/**
 * Auteursblok voor blogartikelen.
 *
 * Kleur en typografie volgen de Avada-variabelen van de huisstijl
 * (:root), met een harde fallback zodat het blok ook zonder die
 * variabelen op de juiste kleuren uitkomt.
 *
 * De selectors zijn bewust dubbel (.psc-author-box .psc-author-box__x):
 * de stylesheet van het thema wordt na deze geladen, en met twee klassen
 * winnen we het van regels als `.post-content p` zonder `!important`.
 */

.psc-author-box {
	--psc-surface: var(--awb-color2, #f6f6f6);
	--psc-border: var(--sep_color, #e0dede);
	--psc-accent: var(--awb-color4, #f0932b);
	--psc-text: var(--body_typography-color, #383838);
	--psc-heading: var(--h2_typography-color, #000000);
	--psc-link: var(--link_color, #557290);
	--psc-link-hover: var(--link_hover_color, #000000);
	--psc-muted: #63666a;
	--psc-divider: #bfbfbf;

	box-sizing: border-box;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 28px;
	padding: 14px 18px;
	border: 1px solid var(--psc-border);
	border-left: 3px solid var(--psc-accent);
	border-radius: 6px;
	background-color: var(--psc-surface);
	color: var(--psc-text);
	font-family: var(--body_typography-font-family, "Open Sans", Arial, Helvetica, sans-serif);
}

.psc-author-box *,
.psc-author-box *::before {
	box-sizing: inherit;
}

/* Foto */

.psc-author-box .psc-author-box__avatar {
	flex: 0 0 auto;
	display: block;
	width: 64px;
	height: 64px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	object-fit: cover;
	object-position: 50% 30%;
	background-color: #fff;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--psc-border);
}

/* Tekst */

.psc-author-box .psc-author-box__body {
	flex: 1 1 auto;
	min-width: 0;
}

.psc-author-box .psc-author-box__byline,
.psc-author-box .psc-author-box__meta {
	margin: 0;
	padding: 0;
}

.psc-author-box .psc-author-box__byline {
	font-size: 17px;
	line-height: 1.35;
	letter-spacing: 0;
}

.psc-author-box .psc-author-box__prefix {
	color: var(--psc-muted);
	font-weight: 400;
}

.psc-author-box .psc-author-box__name {
	color: var(--psc-heading);
	font-weight: 700;
	text-decoration: none;
}

.psc-author-box .psc-author-box__name:hover,
.psc-author-box .psc-author-box__name:focus-visible {
	color: var(--psc-link);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.psc-author-box .psc-author-box__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
	margin-top: 3px;
	color: var(--psc-muted);
	font-size: 14px;
	line-height: 1.5;
}

/*
 * Het scheidingsteken hoort bij het vóórgaande item (::after), niet bij het
 * volgende (::before). Zo blijft het bij afbreken achter op de vorige regel
 * in plaats van los aan het begin van een nieuwe regel te komen staan.
 */
.psc-author-box .psc-author-box__item:not(:last-child)::after {
	content: "·";
	margin-left: 8px;
	color: var(--psc-divider);
}

.psc-author-box .psc-author-box__item time {
	color: inherit;
	font-style: normal;
	white-space: nowrap;
}

.psc-author-box .psc-author-box__link {
	color: var(--psc-link);
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.psc-author-box .psc-author-box__link:hover,
.psc-author-box .psc-author-box__link:focus-visible {
	color: var(--psc-link-hover);
}

.psc-author-box a:focus-visible {
	outline: 2px solid var(--psc-accent);
	outline-offset: 3px;
	border-radius: 3px;
}

/*
 * Mobiel: foto blijft links, de metagegevens gaan onder elkaar.
 * Op telefoonbreedtes past de metaregel toch nooit op één regel; door te
 * stapelen voorkomen we losse punten (·) aan het begin van een nieuwe regel.
 */

@media (max-width: 600px) {
	.psc-author-box {
		align-items: flex-start;
		gap: 12px;
		padding: 12px 14px;
	}

	.psc-author-box .psc-author-box__avatar {
		width: 52px;
		height: 52px;
	}

	.psc-author-box .psc-author-box__byline {
		font-size: 16px;
	}

	.psc-author-box .psc-author-box__meta {
		flex-direction: column;
		gap: 1px;
		margin-top: 2px;
		font-size: 13px;
		line-height: 1.45;
	}

	.psc-author-box .psc-author-box__item:not(:last-child)::after {
		content: none;
	}
}
