/* Page styles for the example files only. Your site does not need this file. */

:root {
	color-scheme: light;
}

body {
	margin: 0;
	background: #eef0f5;
	color: #1f2333;
	font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.demo-bar {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	padding: 12px 20px;
	background: #1f2333;
	color: #ffffff;
	font-size: 0.92rem;
}

.demo-bar a {
	color: #ffffff;
}

.demo-bar__title {
	margin-right: auto;
	font-weight: 700;
}

.demo-bar label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.demo-bar input,
.demo-bar button {
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	font: inherit;
}

.demo-bar button {
	cursor: pointer;
}

.demo-bar input {
	color-scheme: dark;
}

.demo-page {
	max-width: 1080px;
	margin: 0 auto;
	padding: 32px 20px 64px;
}

.demo-page > h1 {
	margin: 0 0 6px;
	font-size: 1.8rem;
}

.demo-page > p {
	margin: 0 0 28px;
	color: #5d6275;
}

.demo-section {
	margin: 0 0 48px;
}

.demo-section > h2 {
	margin: 0 0 12px;
	font-size: 1.15rem;
}

.demo-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.demo-list a {
	display: block;
	height: 100%;
	padding: 18px 20px;
	border-radius: 12px;
	background: #ffffff;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(20, 33, 61, 0.08);
}

.demo-list a:hover {
	box-shadow: 0 6px 20px rgba(20, 33, 61, 0.14);
}

.demo-list strong {
	display: block;
	margin-bottom: 4px;
}

.demo-log {
	min-height: 120px;
	max-height: 240px;
	margin: 16px 0 0;
	padding: 14px 16px;
	border-radius: 10px;
	background: #1f2333;
	color: #c9f2d6;
	font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	overflow: auto;
	white-space: pre-wrap;
}

.demo-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 16px;
}

.demo-actions button {
	padding: 8px 14px;
	border: 1px solid #c9cfdc;
	border-radius: 8px;
	background: #ffffff;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
