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98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
@tailwind base;
@tailwind components;
@tailwind utilities;

.link {
	@apply font-semibold hover:text-orange-500 transition-colors;
}
.thin-link {
	@apply hover:text-orange-500 transition-colors;
}
.thinner-link {
	@apply hover:text-orange-500 transition-colors;
}

.prose :where(img):not(:where([class~="not-prose"] *)) {
	margin-top: 0;
	margin-bottom: 0;
}

.prose :where(code):not(:where([class~="not-prose"] *)) {
	word-break: break-all;
}

.prose :where(a):not(:where([class~="not-prose"] *)) {
	word-break: break-all;
}

.group:hover .group-hover\:flex {
	/* for some reason, group-hover:flex not working on mobile */
	display: flex;
}
.group:active .group-active\:flex {
	/* for some reason, group-active:flex not working on mobile */
	display: flex;
}
@media (min-width: 640px) {
	/* for some reason, sm:block not working */
	.sm\:block {
		@apply block;
	}
}
@media (min-width: 768px) {
	/* for some reason, md:block not working */
	.md\:block {
		@apply block;
	}
}

@layer base {
	a.text-link {
		@apply font-semibold text-gray-800 underline decoration-orange-500 underline-offset-2 hover:text-orange-500;
	}
}

@layer utilities {
	@variants hover, focus {
		.filter-none {
			filter: none;
		}
		.filter-grayscale {
			filter: grayscale(100%);
		}
		.shadow-alternate-sm {
			box-shadow:
				0px 5px 5px rgba(0, 0, 0, 0.03),
				0px 2px 2px rgba(0, 0, 0, 0.03),
				0px 0px 1px rgba(0, 0, 0, 0.03);
			transition: transform 0.3s ease-in-out;
		}
		.shadow-alternate {
			box-shadow:
				0px 10px 20px rgba(0, 0, 0, 0.04),
				0px 2px 6px rgba(0, 0, 0, 0.04),
				0px 0px 1px rgba(0, 0, 0, 0.04);
			transition: transform 0.3s ease-in-out;
		}
		.shadow-alternate-xl {
			box-shadow:
				0px 24px 32px rgba(0, 0, 0, 0.04),
				0px 16px 24px rgba(0, 0, 0, 0.04),
				0px 4px 8px rgba(0, 0, 0, 0.04),
				0px 0px 1px rgba(0, 0, 0, 0.04);
			transition: transform 0.3s ease-in-out;
		}
	}
}

.shadow-alternate:hover {
	transform: scale(1.1);
}
/* index */
.active-example-tab {
	@apply border-orange-500 rounded-full text-orange-500 ring-1 bg-orange-50 ring-orange-200 hover:!text-orange-500 cursor-pointer shadow shadow-orange-200;
}

/* guides */
.prose > p > img {
	@apply max-w-full mx-auto my-0 w-4/5;
}
.prose > p > video {
	@apply max-w-full mx-auto my-0 w-4/5;
}

.prose code::before {
	display: none;
}

.prose code::after {
	display: none;
}

/* docs & guides */
.thin-link.current-nav-link {
	@apply text-orange-500;
}
.thin-link.current-nav-link:not(.subheading) {
	@apply border-orange-500 md:border-l-2 pl-4;
}
.link.current-nav-link {
	@apply border-orange-500 text-orange-500;
}
.thinner-link.current-nav-link {
	@apply border-orange-500 text-orange-500;
}
.second-nav-link {
	@apply border-l-2 border-gray-100 px-3;
}
.current-nav-link {
	@apply border-orange-500 text-orange-500;
}

/* editable docs */

.obj h1 {
	@apply text-3xl font-light py-4;
}
.obj h2 {
	@apply mb-2 text-lg;
}
.obj h3 {
	@apply mt-8 text-xl text-orange-500 font-light;
}
.obj h4 {
	@apply mt-8 text-xl text-orange-500 font-light;
}

.obj p {
	@apply mb-2 text-lg;
}

/* playground */

.current-playground-demo {
	@apply text-orange-500 pl-4;
}

/* docs */
.selected-demo {
	@apply font-semibold bg-gray-50 rounded text-orange-500;
}
.codeblock code.language-python {
	@apply !leading-7 !whitespace-pre-wrap !break-all;
	line-height: 1 !important;
}
code.language-bash {
	@apply !leading-7 !whitespace-pre-wrap !break-all;
}

.group-hover-visible {
	@apply group-hover:visible;
}
.anchor-img {
	@apply w-7 max-w-full inline-block m-0 ml-2;
}
.anchor-img-small {
	@apply w-5 max-w-full inline-block m-0 ml-0.5;
}
.selected-version {
	@apply font-semibold text-orange-500;
}
.selected-version:before {
	content: "• ";
}

.obj p {
	word-break: break-word;
}

/* copy button */
.clipboard-button {
	@apply absolute right-0 px-1.5 pb-1 text-gray-500 text-sm z-[100] opacity-0 duration-100;
}
.clipboard-button:hover {
	@apply cursor-pointer;
}
.clipboard-button:hover > svg {
	@apply fill-gray-700;
}
.clipboard-button:focus {
	@apply outline-0;
}

/* interactive banner */
.interactive-banner {
	@apply absolute right-0 px-1.5 pt-0.5 pb-1 m-4 -mt-1 text-sm z-[100] bg-orange-500 rounded-lg;
}

.codeblock {
	@apply relative bg-gray-50 mx-auto p-3 mt-2;
}
.codeblock:hover > .clipboard-button {
	@apply opacity-100 duration-200;
}

[type="search"]::-webkit-search-cancel-button {
	display: none;
}

.view-code {
	@apply w-16 p-2 mx-auto hover:bg-gray-100;
	background: rgb(249, 250, 251);
}

/* demos */
.selected-demo-tab {
	@apply font-semibold text-orange-500 rounded-t-md border-2 border-gray-100 border-b-0 bg-white;
}
.selected-demo-window {
	@apply rounded-b-md border-2  border-gray-100 -mt-0.5;
}

.tip {
	@apply bg-gradient-to-br from-green-50 to-white border-green-50 border-l-2 border-l-green-300 text-green-700 p-4 px-6;
}

.tip strong {
	@apply text-green-700;
}

.tip code {
	@apply text-green-700;
}

.tip a {
	@apply text-green-700;
}

.warning {
	@apply bg-gradient-to-br from-red-50 to-white border-red-50 border-l-2 border-l-red-300 text-red-700 p-4 px-6;
}

.warning strong {
	@apply text-red-700;
}

.warning code {
	@apply text-red-700;
}

.warning a {
	@apply text-red-700;
}

.shared-link:before {
	content: url("img/anchor_orange.svg");
	width: 15px;
	display: inline-block;
	margin-right: 5px;
}

li > p {
	margin: 0.25rem 0 !important;
	padding: 0 !important;
}

ul > li,
li > ul {
	margin: 0 !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

code {
	font-size: 0.9em;
}

pre > code {
	font-weight: 500 !important;
	border-radius: 0.25rem;
	font-size: 0.9em !important;
	line-height: 1 !important;
}

h3.header-tag {
	margin-bottom: 10px;
}

h1 > code,
h2 > code,
h3 > code,
h4 > code,
h5 > code,
h6 > code {
	border: none;
	border-radius: 0;
	background-color: transparent;
}

h5 {
	@apply text-gray-500;
}

.token.table {
	display: unset;
}

strong {
	font-weight: 600;
}

.obj a {
	color: var(--tw-prose-links);
	text-decoration: underline;
	font-weight: 500;
}

.codeblock > pre {
	font-size: 1em;
}

.obj ul > li {
	list-style: circle;
}
.obj ol,
.obj ul {
	padding-inline-start: 40px;
}

ol {
	list-style: decimal;
}

ul {
	list-style: circle;
}

li {
	display: list-item;
}

.results ul {
	list-style: none;
}

.results ol {
	list-style: none;
}

:where(ol > li)::marker {
	font-weight: 400;
	color: #6b7280;
}

.embedded-component .gradio-container {
	padding: var(--size-4) 0 0 0 !important;
}
.embedded-component .gradio-container footer {
	display: none !important;
}
.embedded-component:has(.loading) {
	visibility: hidden;
	height: 0;
}

.obj .codeblock {
	@apply my-4;
	display: grid;
}

.prose .codeblock {
	@apply my-4;
	display: grid;
}

summary {
	display: grid !important;
}

summary code {
	white-space: nowrap !important;
	overflow-x: scroll;
}

summary::after {
	@apply pl-1 !opacity-100;
	background: #f9fafb;
	height: 90%;
	padding-top: 14px;
}

@media (min-width: 768px) {
	body:has(.playground) .main-header,
	body:has(.playground) .main-footer {
		display: none;
	}
}