body {
	font-family: 'Inter', sans-serif;
	color: #666666;
	background-color: #f7fafc;
	font-size: 16px;
	padding-bottom: 5rem;
}

.headline {
	font-size: 1.25rem;
	font-weight: 600;
}

a {
	color: #606FC7;
	font-weight: 600;
}

a:hover {
	color: #434190;
}

.header {
	background-color: white;
	padding: 1rem;
	padding-bottom: 2.5rem;
}

.header__grid {
	display: grid;
	grid-template-columns: repeat(1, minmax(0, 1fr));
	grid-template-rows: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	max-width: 56rem;
}

.header__logo {
	font-size: 1.75rem;
	font-weight: 600;
	color: #606FC7;
	margin: 0;
}

.header__label {
	text-transform: uppercase;
	display: block;
	margin-bottom: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #718096;
}

.content {
	padding: 1rem;
	width: 100%;
}

.content__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	grid-template-rows: repeat(3, minmax(0, 1fr));
	max-width: 56rem;
	column-gap: 1rem;
	row-gap: 2.5rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.flex {
	display: flex;
}

.flex-1 {
	flex: 1 1 0%;
}

.col-6-m3 {
	grid-column: span 6 / span 6;
}

.col-12-s6-m4, .col-12-m6, .col-12-m8, .col-12 {
	grid-column: span 12 / span 12;
}

.result {
	max-width: 56rem;
}

.result__header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.divider {
	border-width: 1px;
	border-color: #cbd5e0;
	margin-top: 2.5rem;
	margin-bottom: 2.5rem;
	height: 0;
}

input:disabled {
	background-color: white;
}

.input {
	border-width: 1px;
	border-color: #cbd5e0;
	border-radius: 0.25rem;
	height: 2.5rem;
	width: 100%;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}

.input--left {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	margin-right: -1rem;
}

.input__label {
	margin-bottom: 0.5rem;
	display: block;
}

.bttn {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	background-color: white;
	border-width: 1px;
	border-color: #cbd5e0;
	margin-right: -0.5rem;
	height: 2.5rem;
	cursor: pointer;
}

.bttn.fill {
	width: 50%;
}

.bttn:focus {
	outline: 1px dotted;
}

.bttn:hover {
	background-color: #edf2f7;
}

.left {
	border-top-left-radius: 0.25rem;
	border-bottom-left-radius: 0.25rem;
}

.right {
	border-top-right-radius: 0.25rem;
	border-bottom-right-radius: 0.25rem;
	margin-right: 0;
}

.bttn.active {
	background-color: #606FC7;
	color: white;
	border-width: 1px;
	border-color: #606FC7;
}

.bttn__primary {
	background-color: #606FC7;
	color: white;
	border-width: 1px;
	border-color: #606FC7;
	border-radius: 0.25rem;
	font-size: 1.125rem;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
	padding-top: 0.75rem;
	padding-bottom: 0.75rem;
	cursor: pointer;
}

.bttn.active:hover, .bttn__primary:hover {
	background-color: #4c51bf;
}

.codeblock {
	border: 1px solid #cbd5e0;
	border-radius: 0.25rem;
	display: block;
	padding: 0.75rem;
	background-color: white;
	white-space: pre-wrap;
	word-wrap: break-word;
}

#urlContainer {
	display: none;
}

#resultContainer {
	display: none;
}

/* small breakpoint */
@media (min-width: 640px) {
	.header {
		padding: 2.5rem;
	}
	.header__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-template-rows: repeat(2, minmax(0, 1fr));
	}
	.header__logo {
		grid-column: span 2 / span 2;
	}
	.content {
		padding: 2.5rem;
	}
	.content__grid {
		column-gap: 1rem;
		row-gap: 2.5rem;
	}
	.col-12-s6-m4 {
		grid-column: span 6 / span 6;
	}
}

/* medium breakpoint */
@media (min-width: 768px) {
	.header__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		grid-template-rows: repeat(1, minmax(0, 1fr));
	}
	.header__logo {
		grid-column: span 1 / span 1;
	}
	.col-6-m3 {
		grid-column: span 3 / span 3;
	}
	.col-12-s6-m4 {
		grid-column: span 4 / span 4;
	}
	.col-12-m6 {
		grid-column: span 6 / span 6;
	}
	.col-12-m8 {
		grid-column: span 8 / span 8;
	}
	.bttn {
		padding-left: 1rem;
		padding-right: 1rem;
	}
}

/* ============================================
   Navigation Bar
   ============================================ */

.navbar {
	display: flex;
	align-items: center;
	background-color: #2d3748;
	padding: 0 1.5rem;
	height: 3rem;
}

.navbar__logo {
	font-size: 1.125rem;
	font-weight: 600;
	color: white;
	text-decoration: none;
	margin-right: 2rem;
}

.navbar__logo:hover {
	color: white;
}

.navbar__link {
	color: #cbd5e0;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0.75rem 1rem;
	border-bottom: 2px solid transparent;
	transition: color 0.15s;
}

.navbar__link:hover {
	color: white;
}

.navbar__link.active {
	color: white;
	border-bottom-color: #606FC7;
}

/* ============================================
   Docs Page
   ============================================ */

.docs {
	max-width: 56rem;
	margin: 0 auto;
	padding: 2rem 1.5rem 4rem;
}

.docs h1 {
	font-size: 2rem;
	font-weight: 600;
	color: #1a202c;
	margin: 0 0 0.5rem;
}

.docs__subtitle {
	color: #718096;
	font-size: 1.125rem;
	margin: 0 0 2.5rem;
}

.docs h2 {
	font-size: 1.5rem;
	font-weight: 600;
	color: #2d3748;
	margin: 2.5rem 0 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid #e2e8f0;
}

.docs h3 {
	font-size: 1.125rem;
	font-weight: 600;
	color: #2d3748;
	margin: 1.5rem 0 0.75rem;
}

.docs p {
	line-height: 1.7;
	margin: 0 0 1rem;
}

.docs ul, .docs ol {
	line-height: 1.7;
	margin: 0 0 1rem;
	padding-left: 1.5rem;
}

/* Endpoint badges */
.badge {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	border-radius: 0.25rem;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	font-family: 'Inter', monospace;
	vertical-align: middle;
	margin-right: 0.5rem;
}

.badge--get {
	background-color: #c6f6d5;
	color: #22543d;
}

.badge--post {
	background-color: #e9d8fd;
	color: #44337a;
}

.endpoint-path {
	font-family: monospace;
	font-size: 0.95rem;
	background-color: #edf2f7;
	padding: 0.125rem 0.375rem;
	border-radius: 0.25rem;
	color: #2d3748;
}

/* Parameter / class tables */
.docs table {
	width: 100%;
	border-collapse: collapse;
	margin: 1rem 0 1.5rem;
	font-size: 0.9rem;
}

.docs th {
	text-align: left;
	padding: 0.625rem 0.75rem;
	background-color: #edf2f7;
	font-weight: 600;
	color: #2d3748;
	border-bottom: 2px solid #cbd5e0;
}

.docs td {
	padding: 0.5rem 0.75rem;
	border-bottom: 1px solid #e2e8f0;
}

.docs tr:last-child td {
	border-bottom: none;
}

.docs code {
	font-family: monospace;
	font-size: 0.875rem;
	background-color: #edf2f7;
	padding: 0.1rem 0.35rem;
	border-radius: 0.2rem;
	color: #2d3748;
}

/* Code tabs */
.code-tabs {
	margin: 1rem 0 1.5rem;
}

.code-tabs__nav {
	display: flex;
	border-bottom: 2px solid #e2e8f0;
	margin-bottom: 0;
}

.code-tabs__btn {
	padding: 0.5rem 1rem;
	background: none;
	border: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #718096;
	cursor: pointer;
	font-family: 'Inter', sans-serif;
	transition: color 0.15s;
}

.code-tabs__btn:hover {
	color: #2d3748;
}

.code-tabs__btn.active {
	color: #606FC7;
	border-bottom-color: #606FC7;
}

.code-tabs__panel {
	display: none;
}

.code-tabs__panel.active {
	display: block;
}

.code-tabs__panel pre {
	margin: 0;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.docs .codeblock {
	font-size: 0.85rem;
	line-height: 1.6;
	overflow-x: auto;
}

/* ============================================
   Test Page Extras
   ============================================ */

.info-banner {
	max-width: 56rem;
	margin: 0 auto;
	padding: 0.75rem 1.25rem;
	background-color: #ebf8ff;
	border: 1px solid #bee3f8;
	border-radius: 0.25rem;
	color: #2b6cb0;
	font-size: 0.9rem;
	line-height: 1.5;
}

.info-banner a {
	color: #2b6cb0;
	text-decoration: underline;
}

.slider-group {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.slider-group input[type="range"] {
	flex: 1;
	height: 6px;
	-webkit-appearance: none;
	appearance: none;
	background: #cbd5e0;
	border-radius: 3px;
	outline: none;
}

.slider-group input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #606FC7;
	cursor: pointer;
}

.slider-group input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #606FC7;
	cursor: pointer;
	border: none;
}

.slider-value {
	min-width: 2.5rem;
	text-align: right;
	font-size: 0.875rem;
	font-weight: 600;
	color: #4a5568;
}

#visualOutput {
	border: 1px solid #cbd5e0;
	border-radius: 0.25rem;
	background-color: #1a202c;
	overflow: hidden;
}

#visualCanvas {
	width: 100%;
	height: auto;
	display: block;
}
