/**
 * MK Byline — post meta byline (prefix: mk-byline-)
 * Layout: name (left) | portrait (center) | reading time (right)
 */

.mk-byline {
	border-top: 1px solid #d9dde2;
	border-bottom: 1px solid #d9dde2;
	background: #fff;
	margin: 0 0 1.5rem;
	padding: 1rem 0;
}

.mk-byline__inner {
	display: grid;
	align-items: center;
	gap: 0.75rem 1rem;
	width: 100%;
}

.mk-byline__inner--three {
	grid-template-columns: 1fr auto 1fr;
}

.mk-byline__inner--two {
	grid-template-columns: 1fr 1fr;
}

.mk-byline__left {
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
	justify-content: center;
	justify-self: start;
	text-align: left;
	min-width: 0;
}

.mk-byline__center {
	display: flex;
	justify-content: center;
	align-items: center;
	justify-self: center;
}

.mk-byline__right {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	justify-self: end;
	text-align: right;
	min-width: 0;
}

.mk-byline__avatar {
	flex: 0 0 auto;
	line-height: 0;
}

.mk-byline__avatar-img {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid #e5e8ec;
}

.mk-byline__col {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	min-width: 0;
}

.mk-byline__col--reading {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: flex-end;
	column-gap: 0.5rem;
	row-gap: 0.15rem;
	text-align: right;
}

.mk-byline__label {
	font-size: 0.75rem;
	font-weight: 400;
	color: #8a9199;
	line-height: 1.2;
}

.mk-byline__name {
	font-size: 1.05rem;
	font-weight: 700;
	color: #111;
	line-height: 1.25;
}

.mk-byline__photo-name {
	font-size: 0.95rem;
	font-weight: 600;
	color: #222;
	line-height: 1.25;
}

.mk-byline__reading-label {
	font-size: 1rem;
	font-weight: 700;
	color: #3d3d3d;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.mk-byline__reading-value {
	font-size: 0.8rem;
	color: #8a9199;
	font-weight: 400;
}

@media (max-width: 600px) {
	.mk-byline__inner--three,
	.mk-byline__inner--two {
		grid-template-columns: 1fr;
		justify-items: stretch;
		text-align: center;
	}

	.mk-byline__left {
		justify-self: center;
		text-align: center;
		align-items: center;
	}

	.mk-byline__right {
		justify-self: center;
		text-align: center;
	}

	.mk-byline__col--reading {
		justify-content: center;
		text-align: center;
	}
}
