/* Interactive demo section (index.html #demo) — runs client-side on sample data */

.demo-section-bg {
	background-color: #fafafa;
	color: #333333;
}

.demo-intro {
	max-width: 720px;
	margin: 0 auto 40px;
}

.demo-card {
	background-color: #ffffff;
	border: 1px solid rgba(200, 200, 200, 0.5);
	border-radius: 7px;
	box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.1);
	padding: 35px 40px 40px;
	max-width: 900px;
	margin: 0 auto;
}

/* A labelled region with a tab stop, so the table scrolls sideways with the arrow keys where it is
   wider than the card (phones) */
.demo-table-wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.demo-table-wrapper:focus-visible {
	outline: 2px solid #50248f;
	outline-offset: 3px;
}

.demo-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	margin-bottom: 0;
}

.demo-table th {
	text-align: left;
	font-weight: 600;
	color: #230051;
	padding: 10px 14px;
	border-bottom: 2px solid #efe9f7;
	white-space: nowrap;
}

.demo-table td {
	padding: 9px 14px;
	border-bottom: 1px solid #f0f0f2;
	white-space: nowrap;
	font-family: Consolas, Menlo, monospace;
	font-size: 13.5px;
	transition: background-color 0.6s ease;
}

.demo-table td.demo-cell--label {
	font-family: inherit;
	color: #7b6696;
	font-size: 12px;
	padding-right: 4px;
}

.demo-cell--fixed {
	background-color: #d9f2e3;
}

.demo-cell--settled {
	background-color: transparent;
}

.demo-row--dupe td {
	background-color: #fdf3ee;
}

.demo-dupe-badge {
	display: inline-block;
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.4px;
	color: #8a4300;
	background-color: #ffe8cc;
	border-radius: 20px;
	padding: 2px 9px;
	margin-left: 8px;
	vertical-align: 1px;
}

.demo-controls {
	text-align: center;
	margin-top: 30px;
}

.demo-summary {
	margin-top: 22px;
}

.demo-chip {
	display: inline-block;
	font-size: 13.5px;
	font-weight: 600;
	border-radius: 20px;
	padding: 6px 16px;
	margin: 4px 6px;
}

.demo-chip--fixed {
	color: #0b6b3a;
	background-color: #d9f2e3;
}

.demo-chip--dupes {
	color: #8a4300;
	background-color: #ffe8cc;
}

.demo-chip i {
	margin-right: 5px;
}

.demo-reset-link {
	display: inline-block;
	background: none;
	border: none;
	color: #7b6696;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
	margin: 4px 6px;
	padding: 6px 4px;
}

.demo-reset-link:hover {
	color: #230051;
}

.demo-outro {
	text-align: center;
	margin-top: 32px;
	padding-top: 28px;
	border-top: 1px solid #f0f0f2;
}

.demo-outro-note {
	max-width: 640px;
	margin: 0 auto 24px;
	color: #555555;
	font-size: 14.5px;
}

.demo-outro-note i {
	color: #230051;
}

.demo-scroll-link {
	display: inline-block;
	margin-left: 18px;
	color: #230051;
	font-weight: 500;
	text-decoration: underline;
}

@media only screen and (max-width: 700px) {

	.demo-card {
		padding: 20px 15px 30px;
	}

	.demo-table td, .demo-table th {
		padding-left: 8px;
		padding-right: 8px;
	}

	.demo-scroll-link {
		display: block;
		margin-left: 0;
		margin-top: 15px;
	}

}
