:root {
	--ssc-accent: #111111;
}

.ssc-wrap {
	margin: 12px 0;
	clear: both;
}

.ssc-trigger {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 0;
	background: none;
	border: 0;
	border-bottom: 1px solid currentColor;
	color: var(--ssc-accent);
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}

.ssc-trigger:hover {
	opacity: 0.7;
}

.ssc-icon {
	flex: 0 0 auto;
}

/* Modal ------------------------------------------------------------- */

.ssc-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ssc-modal[hidden] {
	display: none;
}

.ssc-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.ssc-modal__box {
	position: relative;
	background: #fff;
	color: #111;
	border-radius: 10px;
	width: 100%;
	max-width: 720px;
	max-height: 85vh;
	overflow-y: auto;
	padding: 28px 24px 24px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.ssc-modal__close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.ssc-modal__title {
	margin: 0 0 16px;
	font-size: 20px;
}

body.ssc-locked {
	overflow: hidden;
}

/* Chart ------------------------------------------------------------- */

.ssc-inline {
	margin: 16px 0;
}

.ssc-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}

.ssc-tab {
	background: #f1f1f1;
	border: 1px solid #e0e0e0;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	cursor: pointer;
	color: inherit;
}

.ssc-tab.is-active {
	background: var(--ssc-accent);
	border-color: var(--ssc-accent);
	color: #fff;
}

.ssc-panel {
	display: none;
}

.ssc-panel.is-active {
	display: block;
}

.ssc-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.ssc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	min-width: 360px;
}

.ssc-table th,
.ssc-table td {
	border: 1px solid #e3e3e3;
	padding: 9px 12px;
	text-align: center;
	white-space: nowrap;
}

.ssc-table thead th {
	background: #f7f7f7;
	font-weight: 600;
}

.ssc-table tbody tr:nth-child(even) td,
.ssc-table tbody tr:nth-child(even) th {
	background: #fbfbfb;
}

.ssc-table--highlight tbody th {
	font-weight: 700;
}

.ssc-note {
	margin-top: 12px;
	font-size: 13px;
	color: #666;
}

.ssc-note p {
	margin: 0 0 6px;
}

@media (max-width: 600px) {
	.ssc-modal__box {
		padding: 24px 14px 18px;
		max-height: 90vh;
	}

	.ssc-table th,
	.ssc-table td {
		padding: 7px 9px;
		font-size: 13px;
	}
}

/* Image charts --------------------------------------------------------- */

.ssc-figure {
	margin: 0 0 14px;
}

.ssc-figure a {
	display: block;
}

.ssc-image {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
	border-radius: 6px;
}

.ssc-chart > .ssc-tablewrap {
	margin-top: 4px;
}
