/**
 * BD Media — structural article tools: presentation.
 *
 * Scoped entirely under .bdm-* so nothing here can collide with Kava, Elementor or the
 * existing BDMEDIA look. Colours come from --bdm-beat / --bdm-accent, set inline per beat.
 */

/* ---------- reading time, appended to the Elementor post-info byline row ---------- */
.bdm-readtime {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 500;
	color: #5c6470;
	white-space: nowrap;
}
.bdm-readtime__dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--bdm-beat, #BE1E51);
	display: inline-block;
}

/* ---------- table of contents ---------- */
.bdm-toc {
	border: 1px solid #e9ecf1;
	border-left: 3px solid var(--bdm-beat, #BE1E51);
	border-radius: 10px;
	padding: 18px 22px;
	margin: 0 0 30px;
	background: #fbfcfd;
}
.bdm-toc__title {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #5c6470;
}
.bdm-toc ol {
	margin: 0;
	padding-left: 20px;
}
.bdm-toc li {
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.5;
}
.bdm-toc a {
	color: #17202e;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}
.bdm-toc a:hover {
	color: var(--bdm-beat, #BE1E51);
	border-bottom-color: currentColor;
}

/* ---------- share row ---------- */
.bdm-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 34px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid #e9ecf1;
}
.bdm-share__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #5c6470;
	margin-right: 4px;
}
.bdm-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border: 1px solid #e2e6ec;
	border-radius: 999px;
	background: #fff;
	color: #17202e;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.bdm-share__btn svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
	display: block;
}
.bdm-share__btn:hover {
	background: #17202e;
	border-color: #17202e;
	color: #fff;
}
.bdm-share__btn--wa:hover { background: #1DA851; border-color: #1DA851; }
.bdm-share__btn--fb:hover { background: #1877F2; border-color: #1877F2; }
.bdm-share__btn--li:hover { background: #0A66C2; border-color: #0A66C2; }
.bdm-share__btn--x:hover  { background: #111;    border-color: #111; }
.bdm-share__btn--copy.is-done {
	background: #2F9E44;
	border-color: #2F9E44;
	color: #fff;
}

/* ---------- author box ---------- */
.bdm-author {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	margin: 30px 0 0;
	padding: 22px;
	border: 1px solid #e9ecf1;
	border-radius: 12px;
	background: #fbfcfd;
}
.bdm-author__avatar img {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	display: block;
}
.bdm-author__eyebrow {
	margin: 0 0 4px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #5c6470;
}
.bdm-author__name {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}
.bdm-author__name a {
	color: #17202e;
	text-decoration: none;
}
.bdm-author__name a:hover { color: var(--bdm-beat, #BE1E51); }
.bdm-author__bio {
	margin: 0 0 10px;
	font-size: 15px;
	line-height: 1.6;
	color: #3d4653;
}
.bdm-author__link { margin: 0; font-size: 14px; font-weight: 600; }
.bdm-author__link a {
	color: var(--bdm-beat, #BE1E51);
	text-decoration: none;
}
.bdm-author__link a:hover { text-decoration: underline; }

/* ---------- related reading ---------- */
.bdm-related {
	margin: 40px 0 0;
	padding: 26px 0 0;
	border-top: 2px solid #17202e;
}
.bdm-related__title {
	margin: 0 0 18px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}
.bdm-related__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}
.bdm-related__item { margin: 0; }
.bdm-related__media {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	background: #eef1f5;
	aspect-ratio: 570 / 450;
}
.bdm-related__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.bdm-related__noimg { display: block; width: 100%; height: 100%; }
.bdm-related__head {
	margin: 12px 0 6px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
}
.bdm-related__head a {
	color: #17202e;
	text-decoration: none;
}
.bdm-related__head a:hover { color: var(--bdm-beat, #BE1E51); }
.bdm-related__meta {
	margin: 0;
	font-size: 13px;
	color: #5c6470;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
	.bdm-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bdm-author { flex-direction: row; padding: 18px; }
}
@media (max-width: 560px) {
	.bdm-related__grid { grid-template-columns: 1fr; }
	.bdm-share__btn span.bdm-share__copytxt { display: none; }
	.bdm-share__btn--copy { min-width: 40px; padding: 0 12px; }
	.bdm-author__avatar img { width: 56px; height: 56px; }
}
