/* Read actions v3: compact editorial metadata and share row. */
html body.atd-read .read-story .news-read-v3-actions {
	box-sizing: border-box;
	display: block;
	min-height: 0;
	margin: 18px 0 30px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--esji-text, #172033);
}

html body.atd-read .news-read-v3-topline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	min-width: 0;
}

html body.atd-read .news-read-v3-date {
	min-width: 0;
	color: var(--esji-muted, #8d98a9);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}

html body.atd-read .news-read-v3-date-mobile { display: none; }

html body.atd-read .news-read-v3-share {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 18px;
	flex: 0 0 auto;
	white-space: nowrap;
}

html body.atd-read .news-read-v3-share-label {
	color: var(--esji-muted, #8d98a9);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}

html body.atd-read .news-read-v3-social,
html body.atd-read .news-read-v3-copy {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: currentColor;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

html body.atd-read .news-read-v3-social .read-icon,
html body.atd-read .news-read-v3-copy .read-icon {
	width: 20px;
	height: 20px;
}

html body.atd-read .news-read-v3-copy { color: #111827; }
html body.atd-read .news-read-v3-whatsapp { color: #25d366; }
html body.atd-read .news-read-v3-facebook { color: #1d5fc1; }
html body.atd-read .news-read-v3-x { color: #111827; }

html body.atd-read .news-read-v3-social:hover,
html body.atd-read .news-read-v3-copy:hover { opacity: .72; }

html body.atd-read .news-read-v3-social:focus-visible,
html body.atd-read .news-read-v3-copy:focus-visible,
html body.atd-read .news-read-v3-author a:focus-visible {
	outline: 2px solid var(--esji-primary, #034baa);
	outline-offset: 3px;
}

html body.atd-read .news-read-v3-copy-status {
	position: absolute;
	right: 0;
	bottom: calc(100% + 7px);
	z-index: 2;
	opacity: 0;
	pointer-events: none;
	padding: 4px 7px;
	border-radius: 4px;
	background: #172033;
	color: #fff;
	font-size: 11px;
	line-height: 1.2;
	white-space: nowrap;
}

html body.atd-read .news-read-v3-copy-status.is-visible { opacity: 1; }

html body.atd-read .news-read-v3-author-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
	margin-top: 14px;
}

html body.atd-read .news-read-v3-author {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 8px;
	margin: 0;
	min-width: 0;
}

html body.atd-read .news-read-v3-avatar {
	display: block;
	flex: 0 0 26px;
	width: 26px;
	height: 26px;
	overflow: hidden;
	border-radius: 50%;
}

html body.atd-read .news-read-v3-avatar img {
	display: block;
	width: 26px;
	height: 26px;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
}

html body.atd-read .news-read-v3-author-name {
	overflow: hidden;
	color: var(--esji-text, #172033);
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Verified author badge. */
html body.atd-read .news-read-v3-author-verified {
	display: inline-flex;
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	color: #1d9bf0;
}
html body.atd-read .news-read-v3-author-verified svg { display: block; width: 100%; height: 100%; }

@media (max-width: 767px) {
	html body.atd-read .read-story .news-read-v3-actions {
		display: block;
		margin: 18px 0 27px;
	}
	html body.atd-read .news-read-v3-topline { display: block; }
	html body.atd-read .news-read-v3-date {
		display: block;
		color: var(--esji-muted, #6b7280);
		font-size: 12px;
		font-weight: 500;
		line-height: 18px;
	}
	html body.atd-read .news-read-v3-date-desktop,
	html body.atd-read .news-read-v3-share-desktop { display: none; }
	html body.atd-read .news-read-v3-date-mobile { display: inline; }
	html body.atd-read .news-read-v3-author-row {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		min-width: 0;
		margin-top: 10px;
	}
	html body.atd-read .news-read-v3-author {
		flex: 1 1 auto;
		min-width: 0;
		gap: 6px;
		margin: 0;
	}
	html body.atd-read .news-read-v3-avatar,
	html body.atd-read .news-read-v3-avatar img { width: 32px; height: 32px; }
	html body.atd-read .news-read-v3-avatar { flex-basis: 32px; }
	html body.atd-read .news-read-v3-author-name {
		min-width: 0;
		font-size: 13px;
		font-weight: 700;
		line-height: 18px;
	}
	html body.atd-read .news-read-v3-author-verified {
		display: inline-flex;
		flex: 0 0 16px;
		width: 16px;
		height: 16px;
		color: #1d9bf0;
	}
	html body.atd-read .news-read-v3-author-verified svg { display: block; width: 100%; height: 100%; }

}

html[data-esji-theme="dark"] body.atd-read .news-read-v3-copy,
html[data-esji-theme="dark"] body.atd-read .news-read-v3-x { color: var(--esji-text, #f3f5f8); }

/* Toolbar aksi baca yang muncul hanya saat pembaca berada di isi artikel pada ponsel. */
.news-read-v3-toolbar { display: none; }

@media (width < 768px) {
	html body.atd-read .read-body {
		font-size: var(--news-read-v3-body-size, 16px);
		line-height: var(--news-read-v3-body-line-height, 28px);
		padding-bottom: 68px;
	}

	html body.atd-read .news-read-v3-toolbar:not([hidden]) {
		position: fixed;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1001;
		display: block;
		padding: 5px 8px max(6px, env(safe-area-inset-bottom));
		background: var(--esji-page-bg, #fff);
		background: color-mix(in srgb, var(--esji-page-bg, #fff) 96%, transparent);
		box-shadow: 0 -5px 18px rgba(15, 23, 42, .10);
	}

	/* Pengaturan ukuran teks mengambang di atas bilah aksi. */
	html body.atd-read .news-read-v3-font-panel:not([hidden]) {
		position: absolute;
		bottom: calc(100% + 8px);
		left: 14px;
		display: flex;
		align-items: center;
		gap: 5px;
		width: 184px;
		max-width: calc(100vw - 28px);
		height: 38px;
		padding: 0 8px;
		border-radius: 22px;
		background: var(--esji-primary, #ff5017);
		color: var(--news-read-v3-accent-foreground, #fff);
		box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
		font-family: Arial, sans-serif;
		font-weight: 700;
	}

	html body.atd-read .news-read-v3-font-small { font-size: 14px; }
	html body.atd-read .news-read-v3-font-large { font-size: 19px; }
	html body.atd-read .news-read-v3-font-slider {
		appearance: none;
		-webkit-appearance: none;
		flex: 1 1 auto;
		min-width: 0;
		height: 28px;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: inherit;
		cursor: pointer;
	}
	html body.atd-read .news-read-v3-font-slider::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: currentColor; }
	html body.atd-read .news-read-v3-font-slider::-moz-range-track { height: 3px; border-radius: 3px; background: currentColor; }
	html body.atd-read .news-read-v3-font-slider::-webkit-slider-thumb {
		appearance: none;
		-webkit-appearance: none;
		width: 15px; height: 15px; margin-top: -6px; border: 0; border-radius: 50%; background: currentColor;
	}
	html body.atd-read .news-read-v3-font-slider::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: currentColor; }
	html body.atd-read .news-read-v3-font-slider:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 3px; }

	html body.atd-read .news-read-v3-toolbar-inner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 46px;
		padding: 6px 12px;
		border-radius: 12px;
		background: var(--esji-surface, #fff);
		color: var(--esji-text, #172033);
	}

	html body.atd-read .news-read-v3-toolbar-start,
	html body.atd-read .news-read-v3-toolbar-share {
		display: inline-flex;
		align-items: center;
		gap: 14px;
		min-width: 0;
	}

	html body.atd-read .news-read-v3-toolbar-divider {
		width: 1px;
		height: 24px;
		margin: 0 auto;
		background: var(--esji-border, #e5e7eb);
	}

	html body.atd-read .news-read-v3-toolbar-button,
	html body.atd-read .news-read-v3-toolbar-social {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 27px;
		height: 27px;
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: inherit;
		line-height: 1;
		text-decoration: none;
		cursor: pointer;
	}

	html body.atd-read .news-read-v3-font-button {
		border-radius: 50%;
		background: var(--esji-primary, #ff5017);
		color: var(--news-read-v3-accent-foreground, #fff);
		font-family: Arial, sans-serif;
	}

	html body.atd-read .news-read-v3-font-button strong {
		font-size: 12px;
		line-height: 1;
	}

	html body.atd-read .news-read-v3-font-button small {
		margin-left: 1px;
		font-size: 9px;
		line-height: 1;
	}

	html body.atd-read .news-read-v3-comment-button {
		border: 1.5px solid var(--esji-primary, #ff5017);
		border-radius: 50%;
		color: var(--esji-primary, #ff5017);
	}

	html body.atd-read .news-read-v3-comment-button svg {
		width: 17px;
		height: 17px;
		fill: none;
		stroke: currentColor;
		stroke-width: 1.7;
		stroke-linecap: round;
		stroke-linejoin: round;
	}

	html body.atd-read .news-read-v3-toolbar-social .read-icon {
		width: 21px;
		height: 21px;
	}

	html body.atd-read .news-read-v3-toolbar-copy { color: var(--esji-primary, #ff5017); }
	html body.atd-read .news-read-v3-toolbar-whatsapp { color: #20c96b; }
	html body.atd-read .news-read-v3-toolbar-facebook { color: #195db4; }
	html body.atd-read .news-read-v3-toolbar-x { color: var(--esji-text, #172033); }

	html body.atd-read .news-read-v3-toolbar-button:focus-visible,
	html body.atd-read .news-read-v3-toolbar-social:focus-visible {
		outline: 2px solid var(--esji-primary, #034baa);
		outline-offset: 3px;
	}

	html body.atd-read .news-read-v3-toolbar-copy-status {
		position: absolute;
		right: 0;
		bottom: calc(100% + 8px);
		opacity: 0;
		pointer-events: none;
		padding: 4px 7px;
		border-radius: 4px;
		background: #172033;
		color: #fff;
		font-size: 11px;
		line-height: 1.2;
		white-space: nowrap;
	}

	html body.atd-read .news-read-v3-toolbar-copy-status.is-visible { opacity: 1; }
}

@media (min-width: 768px) {
	html body.atd-read .news-read-v3-toolbar { display: none !important; }
}
