/* Author + Fact Checked byline */
.tdc-byline {
	--tdc-red: #c4161c;
	--tdc-ink: #1a1a1a;
	--tdc-muted: #6b6b6b;
	--tdc-line: #e3e3e3;

	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 32px;
	margin: 0 0 28px;
	padding: 14px 0;
	font-family: inherit;
	color: var(--tdc-ink);
	line-height: 1.25;
}

.tdc-byline__group {
	display: flex;
	align-items: center;
	gap: 24px;
}

.tdc-byline__group--end {
	gap: 16px;
}

/* Updated on / date */
.tdc-byline__date {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tdc-byline__date-label {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	color: #444;
}

.tdc-byline__flag {
	width: 16px;
	height: 12px;
	fill: var(--tdc-red);
	flex: none;
}

.tdc-byline__date-value {
	font-size: 15px;
	font-weight: 700;
	color: var(--tdc-ink);
}

.tdc-byline__divider {
	align-self: stretch;
	width: 1px;
	min-height: 48px;
	background: var(--tdc-line);
}

/* Person (author / fact checker) */
.tdc-byline__person,
.tdc-byline__person:hover {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}

.tdc-byline__photo {
	position: relative;
	flex: none;
	width: 46px;
	height: 46px;
	overflow: hidden;
}

/* Red angled block behind the head-and-shoulders photo */
.tdc-byline__photo::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--tdc-red);
	clip-path: polygon(0 42%, 100% 26%, 100% 100%, 0 100%);
}

.tdc-byline__photo img {
	position: relative;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	margin: 0;
	border-radius: 0;
}

.tdc-byline__who {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tdc-byline__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--tdc-red);
}

.tdc-byline__person:hover .tdc-byline__name {
	text-decoration: underline;
}

.tdc-byline__role {
	font-size: 13px;
	font-style: italic;
	color: var(--tdc-muted);
}

/* FACT ✓✓ / CHECKED badge */
.tdc-byline__badge {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	color: var(--tdc-ink);
}

.tdc-byline__badge-line {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.tdc-byline__ticks {
	width: 22px;
	height: 13px;
	padding: 1px 2px;
	background: #ececec;
	fill: none;
	stroke: var(--tdc-ink);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Share */
.tdc-byline__share {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-left: 8px;
	padding: 0;
	border: 0;
	background: none;
	color: #333;
	cursor: pointer;
}

.tdc-byline__share svg {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tdc-byline__share:hover {
	color: var(--tdc-red);
}

.tdc-byline__share:focus-visible {
	outline: 2px solid var(--tdc-red);
	outline-offset: 2px;
}

.tdc-byline__copied {
	position: absolute;
	top: 100%;
	right: 0;
	white-space: nowrap;
	font-size: 12px;
	color: var(--tdc-muted);
}

/* Mobile */
@media (max-width: 767px) {
	.tdc-byline {
		align-items: flex-start;
		flex-direction: column;
	}
	.tdc-byline__group {
		gap: 16px;
	}
	.tdc-byline__group--end {
		width: 100%;
		padding-top: 14px;
		border-top: 1px solid var(--tdc-line);
	}
	.tdc-byline__share {
		margin-left: auto;
	}
}


/* ============================================================================
   Page style (under the page title)
============================================================================ */
.tdc-pbyline {
	--tdc-p-ink: #111827;
	--tdc-p-muted: #4b5563;
	--tdc-p-label: #8b95a7;
	--tdc-p-red: #dc2626;
	--tdc-p-green: #15803d;
	--tdc-p-line: #e5e7eb;

	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 28px 44px;
	margin: 0 0 24px;
	padding: 26px 0 22px;
	border-top: 1px solid var(--tdc-p-line);
	border-bottom: 1px solid var(--tdc-p-line);
	font-family: inherit;
	line-height: 1.2;
	color: var(--tdc-p-ink);
}

.tdc-pbyline__date {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tdc-pbyline__cal {
	width: 16px;
	height: 16px;
	fill: var(--tdc-p-red);
	flex: none;
}

.tdc-pbyline__date-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.tdc-pbyline__date-label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tdc-p-label);
}

.tdc-pbyline__date-value {
	font-size: 15px;
	font-weight: 700;
	color: var(--tdc-p-ink);
}

.tdc-pbyline__person,
.tdc-pbyline__person:hover {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	column-gap: 6px;
	text-decoration: none;
	color: inherit;
}

.tdc-pbyline__photo {
	width: 40px;
	height: 40px;
	margin: 0 6px 0 0;
	border-radius: 50%;
	object-fit: cover;
	flex: none;
}

.tdc-pbyline__name {
	font-size: 15px;
	font-weight: 700;
	color: var(--tdc-p-ink);
}

.tdc-pbyline__person:hover .tdc-pbyline__name {
	text-decoration: underline;
}

.tdc-pbyline__role {
	font-size: 14px;
	color: var(--tdc-p-muted);
}

/* "✓ FACT CHECKED" sits just above the fact checker */
.tdc-pbyline__checked {
	position: relative;
}

.tdc-pbyline__badge {
	position: absolute;
	bottom: 100%;
	left: 0;
	margin-bottom: 7px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tdc-p-green);
}

.tdc-pbyline__badge svg {
	width: 11px;
	height: 9px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 767px) {
	.tdc-pbyline {
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
	}
	.tdc-pbyline__badge {
		position: static;
		margin: 0 0 8px;
	}
	.tdc-pbyline__checked {
		display: flex;
		flex-direction: column;
	}
}
