/* Blog: article cards, meta line, avatars, category tags (handle bh-blog). */
.bh-cat-tag {
	display: inline-block;
	font: 700 var(--wp--preset--font-size--x-small, .6875rem)/1.2 var(--wp--preset--font-family--body);
	letter-spacing: .1em; text-transform: uppercase;
	color: var(--wp--preset--color--accent); text-decoration: none;
}
a.bh-cat-tag:hover { text-decoration: underline; text-underline-offset: 3px; }
.bh-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .8125rem; color: var(--wp--preset--color--muted); }
.bh-meta__name { font-weight: 600; color: var(--wp--preset--color--primary); }
.bh-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--wp--preset--color--stone); }
.bh-ava {
	--bh-ava: 28px;
	flex-shrink: 0; display: inline-grid; place-items: center; overflow: hidden;
	width: var(--bh-ava); height: var(--bh-ava); border-radius: 50%;
	background: var(--wp--preset--color--linen);
	font: 400 calc(var(--bh-ava) * .42)/1 var(--wp--preset--font-family--display); color: var(--wp--preset--color--accent);
}
/* The agent's portrait in the circle, styled here too: assets/css/agents.css
   is not on every page with a card (without it the 2:3 photo overflowed and
   the circle showed only its grey top). */
.bh-ava .bh-portrait { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 50%; background: var(--wp--preset--color--linen); }
.bh-ava .bh-portrait__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 15%; }
.bh-ava .bh-portrait__mono { position: absolute; inset: 0; display: grid; place-items: center; background: var(--wp--preset--color--linen); }
.bh-ava .bh-portrait__mono span { font: 400 calc(var(--bh-ava) * .42)/1 var(--wp--preset--font-family--display) !important; color: var(--wp--preset--color--accent); }
.bh-ava .bh-portrait__mono small { display: none; }
.bh-by { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--wp--preset--color--primary); text-decoration: none; }
a.bh-by:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Article card */
.bh-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1023px) { .bh-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .bh-posts { grid-template-columns: minmax(0, 1fr); } }
.bh-post {
	position: relative; display: flex; flex-direction: column; min-width: 0;
	border-radius: var(--wp--custom--radius-lg, 6px);
	background: var(--wp--preset--color--white);
	box-shadow: 0 0 0 1px var(--wp--preset--color--line);
	transition: box-shadow var(--wp--custom--duration);
}
.bh-post:hover { box-shadow: 0 0 0 1px var(--wp--preset--color--stone), var(--wp--preset--shadow--card); }
.bh-post:focus-within { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.bh-post[hidden] { display: none; }
.bh-post__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--wp--custom--radius-lg, 6px) var(--wp--custom--radius-lg, 6px) 0 0; background: var(--wp--preset--color--linen); }
.bh-post__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--wp--custom--ease); }
.bh-post:hover .bh-post__media img { transform: scale(1.04); }
.bh-post__ph {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--wp--preset--color--primary) 4%, transparent) 0 1px, transparent 1px 14px), var(--wp--preset--color--linen);
	font: 300 2.5rem/1 var(--wp--preset--font-family--display); color: var(--wp--preset--color--accent);
}
.bh-post__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px; }
.bh-post .bh-cat-tag { position: relative; z-index: 2; align-self: flex-start; }
.bh-post__title { margin-top: 10px; font: 400 1.4375rem/1.22 var(--wp--preset--font-family--display); letter-spacing: -.008em; color: var(--wp--preset--color--primary); text-wrap: balance; }
.bh-post__title a { color: inherit; text-decoration: none; }
.bh-post__title a:focus-visible { outline: none; }
.bh-post__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.bh-post:hover .bh-post__title a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.bh-post__excerpt {
	margin-top: 10px; font-size: .9375rem; line-height: 1.6; color: var(--wp--preset--color--body);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bh-post .bh-meta { margin-top: auto; padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { .bh-post__media img, .bh-post:hover .bh-post__media img { transition: none; transform: none; } }
