/* Strojařem.cz – Sdílení */
.sj-share-section {
	--sj-share-orange: #cf4f12;
	--sj-share-orange-dark: #ad3e0b;
	--sj-share-ink: #20262c;
	--sj-share-muted: #626970;
	--sj-share-border: #dde1e4;
	--sj-share-soft: #f7f5f3;
	width: 100%;
	padding: 28px 20px;
	box-sizing: border-box;
}

.sj-share-section *,
.sj-share-section *::before,
.sj-share-section *::after {
	box-sizing: border-box;
}

.sj-share-section__container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
}

.sj-share-box {
	position: relative;
	display: grid;
	grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
	align-items: center;
	gap: 26px 38px;
	width: 100%;
	padding: 25px 28px;
	background: linear-gradient(135deg, #fff 0%, var(--sj-share-soft) 100%);
	border: 1px solid var(--sj-share-border);
	border-radius: 14px;
	box-shadow: 0 8px 24px rgba(29, 36, 43, .055);
}

.sj-share-box::before {
	content: "";
	position: absolute;
	left: 0;
	top: 20px;
	bottom: 20px;
	width: 4px;
	background: var(--sj-share-orange);
	border-radius: 0 4px 4px 0;
}

.sj-share-box__copy {
	min-width: 0;
	padding-left: 5px;
}

.sj-share-box__eyebrow {
	display: block;
	margin: 0 0 5px;
	color: var(--sj-share-orange);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .09em;
	line-height: 1.3;
	text-transform: uppercase;
}

.sj-share-box h2 {
	margin: 0 0 5px;
	color: var(--sj-share-ink);
	font-size: clamp(20px, 2vw, 25px);
	font-weight: 750;
	line-height: 1.24;
}

.sj-share-box p {
	margin: 0;
	color: var(--sj-share-muted);
	font-size: 14px;
	line-height: 1.55;
}

.sj-share-box__buttons {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 9px;
	min-width: 0;
}

.sj-share-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	max-width: 100%;
	padding: 9px 13px;
	color: var(--sj-share-ink);
	background: #fff;
	border: 1px solid #d5dade;
	border-radius: 9px;
	box-shadow: none;
	font: inherit;
	font-size: 13px;
	font-weight: 750;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.sj-share-button:hover {
	color: var(--sj-share-orange-dark);
	background: #fff;
	border-color: rgba(207, 79, 18, .55);
	box-shadow: 0 5px 14px rgba(29, 36, 43, .07);
	transform: translateY(-1px);
}

.sj-share-button:focus-visible {
	outline: 3px solid rgba(207, 79, 18, .22);
	outline-offset: 2px;
}

.sj-share-button--primary {
	color: #fff;
	background: var(--sj-share-orange);
	border-color: var(--sj-share-orange);
}

.sj-share-button--primary:hover {
	color: #fff;
	background: var(--sj-share-orange-dark);
	border-color: var(--sj-share-orange-dark);
}

.sj-share-button.is-copied {
	color: #176c3b;
	background: #f0faf4;
	border-color: #91c8a7;
}

.sj-share-button[hidden] {
	display: none !important;
}

.sj-share-button svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.sj-share-status {
	position: absolute;
	right: 28px;
	bottom: 6px;
	min-height: 18px;
	color: #176c3b !important;
	font-size: 12px !important;
	font-weight: 700;
}

.sj-share-status.is-error {
	color: #a52d25 !important;
}

/* Článek je už uvnitř úzkého čtecího sloupce. */
.sj-share-section--articles {
	padding: 30px 0 8px;
}

.sj-share-section--articles .sj-share-section__container {
	max-width: none;
}

.sj-share-section--articles .sj-share-box {
	grid-template-columns: 1fr;
	gap: 18px;
}

.sj-share-section--articles .sj-share-box__buttons {
	justify-content: flex-start;
}

@media (max-width: 920px) {
	.sj-share-box {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.sj-share-box__buttons {
		justify-content: flex-start;
	}
}

@media (max-width: 767px) {
	.sj-share-section {
		padding: 20px 16px;
	}

	.sj-share-section--articles {
		padding: 24px 0 6px;
	}

	.sj-share-box {
		padding: 21px 18px;
		border-radius: 12px;
	}

	.sj-share-box::before {
		top: 16px;
		bottom: 16px;
	}

	.sj-share-box__buttons {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
	}

	.sj-share-button {
		width: 100%;
		min-width: 0;
		padding: 10px 9px;
		white-space: normal;
		text-align: center;
	}

	.sj-share-button--primary {
		grid-column: 1 / -1;
	}

	.sj-share-status {
		position: static;
		grid-column: 1 / -1;
		min-height: 0;
		padding-top: 2px;
	}
}

@media (max-width: 390px) {
	.sj-share-box__buttons {
		grid-template-columns: 1fr;
	}

	.sj-share-button--primary {
		grid-column: auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sj-share-button {
		transition: none;
	}
}
