/* ==========================================================
   Article features: toolbar, share bar, buttons, tag chips.
   Brand: teal #00799E. Red #F00018 is not used here.
========================================================== */

.afab-share-menu[hidden],
#afab-share-menu {
	display: none !important;
}

.afab-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 10060;
	max-width: 320px;
	padding: 12px 16px;
	background: #3A3938;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
	border-radius: 8px;
	opacity: 0;
	transform: translateY(8px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.afab-toast.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.afab-toast[hidden] {
	display: none !important;
}

/* Account page saved list (unchanged) */
.afab-account-saved-section { margin-top: 2rem; }
.afab-account-saved-list { list-style: none; margin: 0; padding: 0; }
.afab-account-saved-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.afab-account-saved-item a { color: inherit; text-decoration: underline; }
.afab-account-unsave { border: 1px solid #d9d9d9; background: #fff; color: #333; font-size: 12px; line-height: 1; cursor: pointer; padding: 6px 10px; white-space: nowrap; }
.afab-account-unsave:hover, .afab-account-unsave:focus-visible { color: #111; }
.afab-account-saved-empty { font-style: italic; }

/* ---------- Toolbar ---------- */

.ep-article-page .ep-meta {
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
}

.ep-article-page .afab-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px 24px;
	width: 100%;
	margin: 0;
}

.ep-article-page .afab-toolbar--top {
	padding-top: 18px;
	border-top: 1px solid #E4E1D4;
}

.ep-article-page .afab-toolbar--bottom {
	padding: 0;
}

.ep-article-page .afab-toolbar__buttons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.ep-article-page .afab-views {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-right: 6px;
	color: #776F65;
	font-size: 14px;
	line-height: 1;
}

.ep-article-page .afab-views svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	stroke: none;
}

/* ---------- Buttons ---------- */

.ep-article-page a.afab-btn,
.ep-article-page .ep-content a.afab-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 18px;
	border: 2px solid #00799E;
	border-radius: 999px;
	background: transparent;
	color: #00799E;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	box-sizing: border-box;
}

.ep-article-page a.afab-btn svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.ep-article-page a.afab-btn:hover,
.ep-article-page a.afab-btn:focus-visible {
	background: #D1EDF7;
	border-color: #005E7A;
	color: #005E7A;
}

.ep-article-page a.afab-btn--primary {
	background: #00799E;
	color: #fff;
}

.ep-article-page a.afab-btn--primary:hover,
.ep-article-page a.afab-btn--primary:focus-visible {
	background: #005E7A;
	border-color: #005E7A;
	color: #fff;
}

.ep-article-page a.afab-btn.is-saved svg {
	fill: currentColor;
}

.ep-article-page a.afab-btn:focus-visible,
.ep-article-page .afab-share-this__btn:focus-visible,
.ep-article-page .afab-tag:focus-visible,
.ep-article-page .afab-tags__more:focus-visible {
	outline: 3px solid #005E7A;
	outline-offset: 3px;
}

/* ---------- Share bar (one renderer, top and bottom) ---------- */

.afab-share-this {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin: 0;
}

.afab-share-this--bottom {
	flex-direction: column;
	align-items: flex-start;
	margin: 48px 0 28px;
}

.afab-share-this__heading {
	margin: 0;
	padding: 0;
	color: #3A3938;
	font-family: "Noto Sans", Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.afab-share-this--bottom .afab-share-this__heading {
	margin-bottom: 4px;
	font-size: 20px;
	text-transform: uppercase;
}

.afab-share-this .afab-share-this__icons {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.afab-share-this .afab-share-this__icons li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ep-article-page .afab-share-this .afab-share-this__btn,
.afab-share-this .afab-share-this__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
	box-sizing: border-box;
}

.ep-article-page .afab-share-this--top .afab-share-this__btn {
	width: 40px;
	height: 40px;
}

.ep-article-page .afab-share-this a.afab-share-this__btn:hover,
.ep-article-page .afab-share-this a.afab-share-this__btn:focus-visible,
.ep-article-page .afab-share-this button.afab-share-this__btn:hover,
.ep-article-page .afab-share-this button.afab-share-this__btn:focus-visible {
	color: #fff;
	filter: brightness(1.12);
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(58, 57, 56, 0.2);
}

.afab-share-this__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	color: inherit;
}

.ep-article-page .afab-share-this__icon svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: currentColor;
	stroke: none;
}

.ep-article-page .afab-share-this__icon svg.afab-icon--stroke {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
}

.afab-share-this .afab-share-this__btn--facebook,
.afab-share-this .afab-share-this__btn--facebook:hover { background: #1877F2; }
.afab-share-this .afab-share-this__btn--linkedin,
.afab-share-this .afab-share-this__btn--linkedin:hover { background: #0A66C2; }
.afab-share-this .afab-share-this__btn--x,
.afab-share-this .afab-share-this__btn--x:hover { background: #000000; }
.afab-share-this .afab-share-this__btn--email,
.afab-share-this .afab-share-this__btn--email:hover { background: #00799E; }
.afab-share-this .afab-share-this__btn--instagram,
.afab-share-this .afab-share-this__btn--instagram:hover { background: #E1306C; }
.afab-share-this button.afab-share-this__btn--copy,
.afab-share-this button.afab-share-this__btn--copy:hover,
.afab-share-this button.afab-share-this__btn--copy:focus { background: #3A3938; border: 0; color: #fff; }

/* ---------- Tag chips ---------- */

.ep-article-page .afab-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.ep-article-page .ep-content .afab-tags a.afab-tag,
.ep-article-page .afab-tags a.afab-tag {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 6px 14px;
	border: 0;
	border-radius: 999px;
	background: #F0EEE3;
	color: #47423C;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
	box-sizing: border-box;
}

.ep-article-page .afab-tags a.afab-tag--format {
	background: #00799E;
	color: #fff;
	font-weight: 700;
}

.ep-article-page .afab-tags a.afab-tag:hover,
.ep-article-page .afab-tags a.afab-tag:focus-visible {
	background: #D1EDF7;
	color: #005E7A;
}

.ep-article-page .afab-tags a.afab-tag--format:hover,
.ep-article-page .afab-tags a.afab-tag--format:focus-visible {
	background: #005E7A;
	color: #fff;
}

.afab-tags.is-collapsed .afab-tag--extra {
	display: none;
}

.ep-article-page .afab-tags button.afab-tags__more {
	min-height: 32px;
	background-color: transparent;
	box-shadow: none;
	padding: 6px 14px;
	border: 1px solid #C0BEB5;
	border-radius: 999px;
	background: transparent;
	color: #47423C;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	cursor: pointer;
}

.ep-article-page .afab-tags button.afab-tags__more:hover,
.ep-article-page .afab-tags button.afab-tags__more:focus {
	background: #F0EEE3;
	color: #47423C;
	border-color: #C0BEB5;
}

/* Parent template lays the bottom bar out in a row; stack it. */
.ep-article-page .ep-bottom-bar {
	flex-direction: column;
	align-items: flex-start;
	gap: 22px;
	margin-top: 8px;
}

.ep-article-page .ep-divider {
	background: #E4E1D4;
}

@media (max-width: 576px) {
	.afab-toast {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
	}

	.afab-share-this--bottom {
		margin-top: 36px;
	}

	.afab-share-this--bottom .afab-share-this__heading {
		font-size: 17px;
	}

	.ep-article-page .afab-toolbar__buttons {
		width: 100%;
	}

	.ep-article-page .afab-toolbar__buttons a.afab-btn {
		flex: 1 1 auto;
	}

	.ep-article-page .afab-views {
		width: 100%;
		margin: 0 0 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.afab-share-this__btn,
	a.afab-btn,
	.afab-toast {
		transition: none;
	}
}

/* 1 Oct 2026 S4: Save, Share, Download on Voice pages */
.afab-voice-actions__inner,
.afab-voice-share__inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 16px 20px;
	box-sizing: border-box;
}
.afab-voice-actions .afab-toolbar {
	margin: 0;
}
.afab-voice-share__inner {
	padding-top: 8px;
	padding-bottom: 24px;
}
/* end S4 */
