/*
 * REUC Article Header V2
 * Jedan stabilan komandni sloj za potpis, AI, audio, deljenje i Google izvor.
 */

.article-header-v2 {
	border-bottom: 0;
	max-width: 1180px;
	padding-bottom: 14px;
	padding-top: clamp(24px, 3.5vw, 44px);
}

.article-header-v2 .article-lead {
	margin-inline: auto;
	max-width: 1080px;
}

.article-header-v2 h1 {
	letter-spacing: -.052em;
	max-width: 1060px;
	text-wrap: balance;
}

.article-header-v2 h1.article-title--short {
	font-size: clamp(3rem, 5.15vw, 5rem);
	line-height: .97;
}

.article-header-v2 h1.article-title--medium {
	font-size: clamp(2.65rem, 4.55vw, 4.35rem);
	line-height: 1;
}

.article-header-v2 h1.article-title--long {
	font-size: clamp(2.35rem, 3.85vw, 3.65rem);
	line-height: 1.025;
	max-width: 1010px;
}

.article-header-v2 .article-tagline {
	font-family: var(--mag-sans, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: clamp(1.05rem, 1.25vw, 1.22rem);
	line-height: 1.5;
	margin-bottom: 0;
	margin-top: 17px;
	max-width: 860px;
}

.article-command-deck {
	border-bottom: 1px solid var(--mag-line, #dfe2e7);
	border-top: 1px solid var(--mag-line, #dfe2e7);
	display: grid;
	gap: 12px 20px;
	grid-template-areas:
		"meta tools"
		"integrations integrations"
		"preferred preferred";
	grid-template-columns: minmax(0, 1fr) auto;
	margin-top: 25px;
	padding: 15px 0 13px;
}

.article-header-v2 .article-meta-row {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	display: grid;
	font-family: var(--mag-sans, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: .76rem;
	gap: 8px;
	grid-area: meta;
	margin: 0;
	overflow: visible;
	padding: 0;
	width: 100%;
}

.article-meta-row__identity,
.article-meta-row__details {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	min-width: 0;
}

.article-meta-row__identity {
	gap: 10px;
	min-height: 38px;
}

.article-meta-row__details {
	color: var(--mag-muted, #68707b);
	gap: 7px 0;
}

.article-header-v2 .article-meta-row__author {
	color: var(--mag-ink, #111318);
	flex: 0 1 auto;
	min-height: 0;
	padding: 0;
	width: auto;
}

.article-header-v2 .article-meta-row__item + .article-meta-row__item::before {
	background: color-mix(in srgb, var(--mag-muted, #68707b) 52%, transparent);
	content: "";
	height: 13px;
	margin-inline: 10px;
	width: 1px;
}

.article-header-v2 .article-meta-row .snm-reader-ai-launcher-wrap {
	margin: 0 0 0 auto;
	padding: 0;
	position: static;
}

.article-header-v2 .snm-reader-ai-launcher {
	background: var(--mag-accent, #003399);
	border-color: var(--mag-accent, #003399);
	box-shadow: 0 6px 16px color-mix(in srgb, var(--mag-accent, #003399) 20%, transparent);
	color: #fff;
	height: 38px;
	min-height: 38px;
	padding: 7px 12px;
}

.article-header-v2 .snm-reader-ai-launcher .snm-reader-ai-spark {
	color: #fff;
}

.article-header-v2 .snm-reader-ai-launcher:hover,
.article-header-v2 .snm-reader-ai-launcher:focus-visible,
.article-header-v2 .snm-reader-ai-launcher[aria-expanded="true"] {
	background: var(--mag-ink, #101114);
	border-color: var(--mag-ink, #101114);
	color: var(--mag-surface, #fff);
}

.article-header-v2__integrations {
	display: grid;
	gap: 10px;
	grid-area: integrations;
	min-width: 0;
}

.article-header-v2__integrations > .snm-listen-news,
.article-header-v2__integrations > .snm-old-article {
	margin: 0;
}

.article-header-v2__integrations > .snm-listen-news {
	border-radius: 12px;
	min-height: 54px;
}

.article-header-tools {
	align-items: center;
	align-self: start;
	display: flex;
	gap: 10px;
	grid-area: tools;
	justify-content: flex-end;
	min-height: 38px;
	min-width: 0;
}

.article-header-tools__label {
	color: var(--mag-muted, #68707b);
	font-family: var(--mag-sans, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	font-size: .66rem;
	font-weight: 820;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.article-header-tools .share-tools--header {
	display: flex;
	gap: 6px;
	margin: 0;
}

.article-header-tools .share-tools--header a,
.article-header-tools .share-tools--header button {
	background: var(--mag-surface, #fff);
	border-color: var(--mag-line, #dfe2e7);
	border-radius: 50%;
	height: 38px;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
	width: 38px;
}

.article-header-tools .share-tools--header a:hover,
.article-header-tools .share-tools--header button:hover,
.article-header-tools .share-tools--header a:focus-visible,
.article-header-tools .share-tools--header button:focus-visible {
	background: var(--mag-ink, #101114);
	border-color: var(--mag-ink, #101114);
	color: var(--mag-surface, #fff);
	transform: translateY(-1px);
}

.article-header-tools .share-tools--header .icon {
	height: 18px;
	width: 18px;
}

/* Horizontalne alatke koriste aria/title opis; vertikalni legacy tooltip
 * ovde gasimo jer ulazi preko susednih kružnih dugmadi. */
.article-header-tools .share-tools--header [data-label]::after {
	content: none;
	display: none;
}

.article-header-tools__mobile {
	display: none;
}

.article-preferred-source {
	align-items: center;
	display: flex;
	font-family: var(--mag-sans, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
	gap: 12px;
	grid-area: preferred;
	justify-content: space-between;
	min-width: 0;
	padding: 1px 2px 0;
}

.article-preferred-source a {
	text-decoration: none;
}

.article-preferred-source__main {
	align-items: center;
	display: inline-flex;
	font-size: .78rem;
	gap: 9px;
	min-width: 0;
}

.article-preferred-source__main > span {
	color: #4285f4;
	flex: 0 0 auto;
}

.article-preferred-source__main .icon {
	height: 19px;
	width: 19px;
}

.article-preferred-source__main strong {
	overflow-wrap: anywhere;
}

.article-preferred-source__more {
	align-items: center;
	color: var(--mag-muted, #68707b);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: .72rem;
	font-weight: 780;
	gap: 5px;
}

.article-preferred-source__more .icon {
	height: 15px;
	width: 15px;
}

.article-share-sheet[hidden] {
	display: none !important;
}

.article-share-sheet {
	inset: 0;
	position: fixed;
	z-index: 1000005;
}

.article-share-sheet__backdrop {
	background: rgb(8 10 14 / .58);
	border: 0;
	inset: 0;
	opacity: 0;
	padding: 0;
	position: absolute;
	transition: opacity .2s ease;
	width: 100%;
}

.article-share-sheet__panel {
	background: var(--mag-surface, #fff);
	border: 1px solid var(--mag-line, #dfe2e7);
	border-bottom: 0;
	border-radius: 24px 24px 0 0;
	bottom: var(--snm-article-share-native-bottom, 0px);
	box-shadow: 0 -18px 55px rgb(8 10 14 / .22);
	color: var(--mag-ink, #101114);
	left: 0;
	margin-inline: auto;
	max-height: calc(100dvh - max(18px, env(safe-area-inset-top)) - var(--snm-article-share-native-bottom, 0px));
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 9px 18px max(22px, env(safe-area-inset-bottom));
	position: absolute;
	right: 0;
	transform: translate3d(0, 34px, 0);
	transition: transform .22s cubic-bezier(.22, .8, .28, 1);
	width: min(100%, 560px);
	-webkit-overflow-scrolling: touch;
}

.article-share-sheet.is-ios-app .article-share-sheet__panel {
	border-bottom: 0;
	border-radius: 24px 24px 0 0;
	bottom: 0;
	max-height: calc(100dvh - max(18px, env(safe-area-inset-top)));
	width: 100%;
}

.article-share-sheet.is-open .article-share-sheet__backdrop {
	opacity: 1;
}

.article-share-sheet.is-open .article-share-sheet__panel {
	transform: translate3d(0, 0, 0);
}

.article-share-sheet__handle {
	background: color-mix(in srgb, var(--mag-muted, #68707b) 28%, transparent);
	border-radius: 999px;
	display: block;
	height: 4px;
	margin: 0 auto 7px;
	width: 42px;
}

.article-share-sheet__head {
	align-items: center;
	border-bottom: 1px solid var(--mag-line, #dfe2e7);
	display: flex;
	justify-content: space-between;
	padding: 7px 0 15px;
}

.article-share-sheet__head > div > span {
	color: var(--mag-accent, #003399);
	display: block;
	font-size: .62rem;
	font-weight: 900;
	letter-spacing: .13em;
	margin-bottom: 3px;
}

.article-share-sheet__head h2 {
	font-size: 1.38rem;
	letter-spacing: -.035em;
	margin: 0;
}

.article-share-sheet__close {
	align-items: center;
	background: var(--mag-surface, #fff);
	border: 1px solid var(--mag-line, #dfe2e7);
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	height: 44px;
	justify-content: center;
	padding: 0;
	width: 44px;
}

.article-share-sheet__close .icon {
	height: 20px;
	width: 20px;
}

.article-share-sheet__native {
	align-items: center;
	background: var(--mag-ink, #101114);
	border: 1px solid var(--mag-ink, #101114);
	border-radius: 12px;
	color: var(--mag-surface, #fff);
	cursor: pointer;
	display: flex;
	font-size: .84rem;
	font-weight: 820;
	gap: 9px;
	justify-content: center;
	margin-top: 16px;
	min-height: 48px;
	padding: 10px 14px;
	width: 100%;
}

.article-share-sheet__native[hidden] {
	display: none !important;
}

.article-share-sheet__native .icon {
	height: 18px;
	width: 18px;
}

.share-tools--sheet {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 15px;
}

.share-tools--sheet a,
.share-tools--sheet button {
	align-items: center;
	background: var(--mag-surface, #fff);
	border: 1px solid var(--mag-line, #dfe2e7);
	border-radius: 12px;
	color: var(--mag-ink, #101114);
	display: flex;
	flex-direction: column;
	font-size: .68rem;
	font-weight: 760;
	gap: 7px;
	height: auto;
	justify-content: center;
	min-height: 78px;
	padding: 10px 5px;
	text-decoration: none;
	width: 100%;
}

.share-tools--sheet a:hover,
.share-tools--sheet button:hover,
.share-tools--sheet a:focus-visible,
.share-tools--sheet button:focus-visible {
	background: var(--mag-soft, #f3f4f6);
	border-color: color-mix(in srgb, var(--mag-accent, #003399) 48%, var(--mag-line, #dfe2e7));
	color: var(--mag-accent, #003399);
}

.share-tools--sheet .icon {
	height: 22px;
	width: 22px;
}

html.snm-article-share-locked {
	scroll-behavior: auto !important;
}

body.snm-article-share-locked {
	overflow: hidden !important;
}

.article-header-v2 + .article-featured,
.article-header-v2 + .article-featured--video,
.article-header-v2 + .article-gallery {
	margin-top: 0;
}

@media (max-width: 767px) {
	.article-header-v2 {
		padding-bottom: 10px;
		padding-top: 20px;
	}

	.article-header-v2 h1.article-title--short {
		font-size: clamp(2.25rem, 10.2vw, 2.85rem);
		line-height: .99;
	}

	.article-header-v2 h1.article-title--medium {
		font-size: clamp(2.08rem, 9.1vw, 2.48rem);
		line-height: 1.015;
	}

	.article-header-v2 h1.article-title--long {
		font-size: clamp(1.88rem, 8vw, 2.16rem);
		letter-spacing: -.043em;
		line-height: 1.04;
		text-wrap: pretty;
	}

	.article-header-v2 .article-tagline {
		font-size: .98rem;
		line-height: 1.48;
		margin-top: 13px;
	}

	.article-command-deck {
		gap: 11px;
		grid-template-areas:
			"meta"
			"integrations"
			"tools"
			"preferred";
		grid-template-columns: minmax(0, 1fr);
		margin-top: 19px;
		padding: 12px 0;
	}

	.article-header-v2 .article-meta-row {
		background: transparent;
		border: 0;
		border-left: 0;
		border-radius: 0;
		box-shadow: none;
		font-size: .7rem;
		margin: 0;
		overflow: visible;
		padding: 0;
	}

	.article-header-v2 .article-meta-row__identity {
		gap: 8px;
		min-height: 36px;
	}

	.article-header-v2 .article-meta-row .article-meta-row__author {
		flex: 1 1 180px;
		min-height: 0;
		padding: 0;
		width: auto;
	}

	.article-header-v2 .article-meta-row .snm-reader-ai-launcher-wrap {
		margin: 0 0 0 auto;
		padding: 0;
		position: static;
	}

	.article-header-v2 .snm-reader-ai-launcher {
		box-shadow: 0 5px 14px color-mix(in srgb, var(--mag-accent, #003399) 18%, transparent);
		font-size: 10px;
		height: 34px;
		min-height: 34px;
		padding: 7px 11px;
	}

	.article-header-v2 .article-meta-row__details {
		line-height: 1.35;
	}

	.article-header-v2 .article-meta-row__item + .article-meta-row__item::before {
		margin-inline: 7px;
	}

	.article-header-v2 .article-meta-row__updated {
		flex-basis: 100%;
	}

	.article-header-v2 .article-meta-row__updated::before {
		display: none;
	}

	.article-header-v2__integrations > .snm-listen-news {
		margin: 0;
	}

	.article-header-tools {
		display: block;
	}

	.article-header-tools__label,
	.article-header-tools .share-tools--header {
		display: none;
	}

	.article-header-tools__mobile {
		display: grid;
		gap: 9px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.article-header-tools__button {
		align-items: center;
		background: var(--mag-surface, #fff);
		border: 1px solid var(--mag-line, #dfe2e7);
		border-radius: 999px;
		color: var(--mag-ink, #101114);
		cursor: pointer;
		display: inline-flex;
		font-family: var(--mag-sans, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
		font-size: .75rem;
		font-weight: 810;
		gap: 8px;
		justify-content: center;
		min-height: 45px;
		padding: 8px 13px;
		width: 100%;
	}

	.article-header-tools__button .icon {
		height: 18px;
		width: 18px;
	}

	.article-header-tools__button.is-saved {
		background: var(--mag-ink, #101114);
		border-color: var(--mag-ink, #101114);
		color: var(--mag-surface, #fff);
	}

	.article-preferred-source {
		border-top: 1px solid var(--mag-line, #dfe2e7);
		gap: 8px;
		padding-top: 11px;
	}

	.article-preferred-source__main {
		font-size: .72rem;
		line-height: 1.3;
	}

	.article-preferred-source__more {
		font-size: .68rem;
	}

	.article-featured {
		margin-top: 0;
	}
}

@media (max-width: 360px) {
	.article-header-v2 h1.article-title--long {
		font-size: 1.78rem;
	}

	.article-header-tools__mobile {
		gap: 7px;
	}

	.article-header-tools__button {
		font-size: .7rem;
		padding-inline: 9px;
	}

	.share-tools--sheet {
		gap: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.article-share-sheet__backdrop,
	.article-share-sheet__panel,
	.article-header-tools .share-tools--header a,
	.article-header-tools .share-tools--header button {
		transition: none !important;
	}
}

@media print {
	.article-header-tools,
	.article-preferred-source,
	.article-share-sheet,
	.article-header-v2__integrations .snm-listen-news,
	.article-header-v2 .snm-reader-ai-launcher-wrap {
		display: none !important;
	}
}
