.talley-sds {
	--talley-navy: #072d59;
	--talley-navy-dark: #041f40;
	--talley-red: #a81a26;
	--talley-red-dark: #8d151f;
	--talley-yellow: #f3c927;
	--talley-ink: #17202a;
	--talley-muted: #6c7480;
	--talley-line: #e7e9ed;
	--talley-surface: #fff;
	width: 100%;
	font-family: inherit;
}

.talley-sds *,
.talley-sds *::before,
.talley-sds *::after {
	box-sizing: border-box;
}

.talley-sds__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.talley-sds__card {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 18px;
	min-width: 0;
	padding: 22px;
	background: var(--talley-surface);
	border: 1px solid var(--talley-line);
	border-radius: 16px;
	box-shadow: 0 2px 5px rgba(7, 45, 89, 0.035), 0 10px 26px rgba(7, 45, 89, 0.055);
	transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.talley-sds__card:hover {
	transform: translateY(-2px);
	border-color: #d6dbe1;
	box-shadow: 0 4px 10px rgba(7, 45, 89, 0.05), 0 16px 34px rgba(7, 45, 89, 0.09);
}

.talley-sds__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	color: #333333;
	background: #f5f1e8;
	border-radius: 13px;
}

.talley-sds__icon svg {
	display: block;
	width: 26px;
	height: 26px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.65;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.talley-sds__content {
	min-width: 0;
}

.talley-sds__eyebrow {
	display: block;
	margin: 0 0 5px;
	color: var(--talley-navy);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.talley-sds .talley-sds__title {
	margin: 0 0 5px !important;
	padding: 0 !important;
	color: var(--talley-ink);
	font-family: inherit;
	font-size: clamp(20px, 1.4vw, 23px);
	font-weight: 650;
	line-height: 1.25;
	letter-spacing: -0.018em;
}

.talley-sds__format {
	display: block;
	color: var(--talley-muted);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
}

.talley-sds__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 9px;
	line-height: 1;
}

.talley-sds .talley-sds__button,
.talley-sds .talley-sds__button:visited {
	appearance: none !important;
	box-sizing: border-box !important;
	display: inline-flex;
	align-items: center;
	align-self: center !important;
	justify-content: center;
	gap: 8px;
	height: 44px !important;
	min-height: 44px;
	margin: 0 !important;
	padding: 11px 15px;
	position: static !important;
	top: auto !important;
	right: auto !important;
	bottom: auto !important;
	left: auto !important;
	color: #fff !important;
	background: var(--talley-red) !important;
	border: 1px solid var(--talley-red) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 650 !important;
	line-height: 1 !important;
	letter-spacing: 0 !important;
	text-decoration: none !important;
	text-transform: none !important;
	vertical-align: middle !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease !important;
}

.talley-sds .talley-sds__button--preview,
.talley-sds .talley-sds__button--preview:visited {
	color: var(--talley-red) !important;
	background: #fff !important;
}

.talley-sds .talley-sds__button:hover,
.talley-sds .talley-sds__button:focus-visible {
	color: #fff !important;
	background: var(--talley-red-dark) !important;
	border-color: var(--talley-red-dark) !important;
	transform: translateY(-1px);
}

.talley-sds .talley-sds__button:focus-visible {
	outline: 3px solid rgba(243, 201, 39, 0.7) !important;
	outline-offset: 3px;
}

.talley-sds__button svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.talley-sds__modal[hidden] {
	display: none !important;
}

.talley-sds__modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 28px;
}

.talley-sds__modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 14, 20, 0.72);
	backdrop-filter: blur(6px);
}

.talley-sds__modal-panel {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(1100px, 100%);
	height: min(86vh, 900px);
	overflow: hidden;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.talley-sds__modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px 18px 15px 22px;
	border-bottom: 1px solid var(--talley-line);
}

.talley-sds__modal-label {
	display: block;
	margin-bottom: 2px;
	color: var(--talley-red);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
}

.talley-sds__modal-title {
	display: block;
	max-width: 720px;
	overflow: hidden;
	color: var(--talley-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.talley-sds__modal-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.talley-sds a.talley-sds__modal-open,
.talley-sds a.talley-sds__modal-open:visited {
	color: var(--talley-red) !important;
	font-size: 14px !important;
	font-weight: 650 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
}

.talley-sds a.talley-sds__modal-open:hover,
.talley-sds a.talley-sds__modal-open:focus-visible {
	color: var(--talley-red-dark) !important;
	text-decoration: underline !important;
}

.talley-sds button.talley-sds__modal-close {
	display: grid !important;
	place-items: center !important;
	width: 40px !important;
	height: 40px !important;
	min-width: 40px !important;
	min-height: 40px !important;
	margin: 0 !important;
	padding: 0 !important;
	color: var(--talley-ink) !important;
	background: #f2f3f5 !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	font-family: Arial, sans-serif !important;
	font-size: 29px !important;
	font-weight: 300 !important;
	line-height: 1 !important;
	cursor: pointer;
}

.talley-sds button.talley-sds__modal-close:hover,
.talley-sds button.talley-sds__modal-close:focus-visible {
	background: #e5e7ea !important;
	outline: 2px solid var(--talley-red) !important;
	outline-offset: 2px;
}

.talley-sds__modal-body {
	flex: 1 1 auto;
	min-height: 0;
	background: #e8eaed;
}

.talley-sds__modal-frame {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

body.talley-sds-modal-open {
	overflow: hidden;
}

.talley-sds__empty {
	margin: 0;
	padding: 18px 20px;
	color: var(--talley-muted);
	background: #f7f8fa;
	border: 1px solid var(--talley-line);
	border-radius: 12px;
}

@media (max-width: 980px) {
	.talley-sds__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 520px) {
	.talley-sds__card {
		grid-template-columns: auto minmax(0, 1fr);
		gap: 14px;
		padding: 18px;
		border-radius: 14px;
	}

	.talley-sds__icon {
		width: 46px;
		height: 46px;
	}

	.talley-sds__actions {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: 100%;
		margin-top: 2px;
	}

	.talley-sds .talley-sds__button {
		height: 48px !important;
		min-height: 48px;
		padding-inline: 12px;
	}

	.talley-sds__modal {
		padding: 0;
	}

	.talley-sds__modal-panel {
		width: 100%;
		height: 100vh;
		height: 100dvh;
		max-height: none;
		border-radius: 0;
	}

	.talley-sds__modal-header {
		gap: 10px;
		padding: max(12px, env(safe-area-inset-top)) 12px 12px 16px;
	}

	.talley-sds__modal-title {
		max-width: 48vw;
		font-size: 16px;
	}

	.talley-sds__modal-label {
		font-size: 10px;
	}

	.talley-sds a.talley-sds__modal-open {
		font-size: 12px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.talley-sds__card,
	.talley-sds .talley-sds__button {
		transition: none !important;
	}
}
