:root
{
	--bg-page: rgb(0, 0, 0);
	--grey-darker: rgb(17, 19, 21);
	--grey-card-hover: color-mix(in srgb, var(--grey-darker) 95%, white);
	--grey-dark: rgb(30, 34, 37);
	--header-bg: rgb(0, 0, 0);
	--grey-border: rgb(50, 56, 63);
	--text-muted: rgb(168, 177, 187);

	/*
	 * Breakpoints (canonical, do not invent new ones)
	 *
	 *   --bp-sm  480px   small phone
	 *   --bp-md  768px   tablet
	 *   --bp-lg  1024px  small laptop / large tablet
	 *   --bp-xl  1280px  desktop wide
	 *
	 * CSS custom properties cannot be used inside @media conditions, so
	 * every @media rule in the site must hardcode one of the four pixel
	 * values above. These tokens exist so JS can read them via
	 * getComputedStyle and so there is one place to grep for canonical
	 * widths. Existing rules at 820/900/960/980 are legacy and slated
	 * for migration onto md (768) or lg (1024).
	 */
	--bp-sm: 480px;
	--bp-md: 768px;
	--bp-lg: 1024px;
	--bp-xl: 1280px;
}

@font-face
{
	font-family: '42dot Sans';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('/site/fonts/42dot-sans/42dot-sans-latin.woff2') format('woff2-variations'),
	     url('/site/fonts/42dot-sans/42dot-sans-latin.woff2') format('woff2');
}

@font-face
{
	font-family: 'Google Sans Code';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('/site/fonts/google-sans-code-regular.ttf') format('truetype');
}

*
{
	font-family: '42dot Sans', 'Roboto', sans-serif;
	font-weight: 300;
	color:rgb(220,220,220);

	line-height: 1.3;
}

body
{
	background: var(--bg-page);

	position: relative;
	text-align: left;
}

.SiteHeader
{
	left: 0;
	right: 0;
	z-index: 1000;
	padding: 0;
	text-align: left;
}

.SiteHeader .Indent
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: nowrap;
	gap: 24px;
	min-height: 64px;
}

.SiteHeader .WordmarkWrapper
{
	margin: 0;
	display: flex;
	align-items: center;
}

.SiteHeader .Wordmark
{
	font-family: '42dot Sans', 'Roboto', sans-serif;
	font-size: 26px;
	line-height: 0.95;
	font-style: normal;
	font-weight: 500;
	letter-spacing: -0.01em;
	color: rgb(220,220,220);
	text-decoration: none;
}

.WordmarkPlus
{
	position: relative;
	top: -0.3em;
	font-size: 0.7em;
	font-weight: 700;
}

.SiteHeader .Links
{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	margin-left: auto;
	flex: 0 0 auto;
	gap: 12px;
	font-size: 16px;
	white-space: nowrap;
}

.SiteHeader .Links a
{
	color: rgb(220,220,220);
	text-decoration: none;
}

.SiteHeader .Links a:hover
{
	text-decoration: underline;
}

.SiteHeader .Links span
{
	opacity: 0.4;
}

.SiteHeader .HeaderActions
{
	display: flex;
	align-items: center;
	margin-left: auto;
	gap: 20px;
	flex: 0 0 auto;
}

.SiteHeader .HeaderNav
{
	display: flex;
	align-items: center;
	gap: 24px;
}

.SiteHeader .NavLink
{
	color: rgb(220,220,220);
	font-family: '42dot Sans', 'Roboto', sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -0.01em;
	text-decoration: none;
	white-space: nowrap;
}

.SiteHeader .NavLink:hover
{
	color: rgb(255,255,255);
	text-decoration: underline;
}

.SiteHeader .NavToggle
{
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	padding: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
}

.SiteHeader .NavToggle-bar
{
	display: block;
	width: 22px;
	height: 2px;
	margin: 0 auto;
	background: rgb(220,220,220);
}

.SiteHeader .MobileNav
{
	display: none;
	flex-direction: column;
	padding: 4px 0 16px;
	border-top: 1px solid var(--grey-border);
}

.SiteHeader.nav-open .MobileNav
{
	display: flex;
}

.SiteHeader .MobileNav .Indent
{
	display: flex;
	flex-direction: column;
}

.SiteHeader .MobileNav-link
{
	padding: 12px 0;
	color: rgb(220,220,220);
	font-family: '42dot Sans', 'Roboto', sans-serif;
	font-size: 18px;
	font-weight: 500;
	text-decoration: none;
}

.SiteHeader .MobileNav-link:hover
{
	color: rgb(255,255,255);
}

.SiteFooter,
.SiteFooter *
{
	font-family: '42dot Sans', sans-serif;
}

.SiteFooter
{
	background: var(--grey-darker);
	border-top: 1px solid rgb(40,48,52);
	padding: 64px 0;
}

.SiteFooter .Indent
{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	text-align: left;
}

.SiteFooter-brand
{
	font-size: 22px;
	font-style: normal;
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.01em;
}

.SiteFooter .Links
{
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 12px;
	font-size: 15px;
}

.SiteFooter .Links a
{
	color: rgb(220,220,220);
	text-decoration: none;
}

.SiteFooter .Links a:hover
{
	text-decoration: underline;
}

.SiteFooter .Links span
{
	opacity: 0.4;
}

section
{
	padding: 32px 0 72px 0;
	position: relative;
}

h1
{
	font-size: 40px;
	margin: 12px 0;
	-font-style: italic;
	font-weight: 300;
}

h2
{
	font-size: 32px;
	margin: 40px 0;
	font-weight: 700;
	-font-style: italic;
	text-align: center;
}

p
{
	font-size: 19px;
	margin-bottom: 18px;
	font-weight: 300;
}

p > a
{
	font-weight: 400;
	color:rgb(232,232,232);
}

ul,
ol
{
	font-size: 20px;
	font-weight: 300;
	margin: 0 0 18px 0;
	padding-left: 24px;
}

li
{
	font-size: 20px;
	margin-bottom: 8px;
}

li > code
{
	font-size: inherit;
}

code
{
	margin: 0;
	padding: 0;
	font-family: Consolas, "Courier New", monospace;
	font-size: 20px;
	white-space: pre;
}

code span
{
	margin: inherit;
	padding: inherit;
	font: inherit;
	line-height: inherit;
	white-space: inherit;
}

code .comment
{
	color: rgb(87,166,74);
}

code .keyword
{
	color: rgb(86,156,214);
}

code .namespace,
code .function,
code .type
{
	color: rgb(78,201,176);
}

code .string
{
	color: rgb(255,214,143);
}

code .number,
code .enum
{
	color: rgb(184,215,163);
}

.Indent
{
	margin: 0 auto;
	padding: 0 28px;
	width: 100%;
	max-width: 1256px;
}

.HomeSections > section
{
	padding-top: 20px;
	padding-bottom: 104px;
}

.HomeSections > :first-child > section
{
	padding-bottom: 104px;
}

.HomeSections > section > h2
{
	margin-top: 0;
}

.Columns
{
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 48px;
}

.Columns > div
{
	flex: 1 1 0;
	min-width: 280px;
}

section h2
{
	margin-bottom: 72px;
}

.subtitle
{
	margin-top: -56px;
	margin-bottom: 64px;
	text-align: left;
}

.subtitle p
{
	font-family: '42dot Sans', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.5;
	letter-spacing: -0.01em;
	color: var(--text-muted);
	margin-bottom: 4px;
}

h3
{
	font-size: 20px;
	margin: 12px 0 24px 0;
	font-weight: 700;
}

.SectionTitle
{
	font-family: '42dot Sans', 'Roboto', sans-serif;
	font-size: 32px;
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.01em;
	color: rgb(255, 255, 255);
	text-align: left;
}

.DarkCard
{
	background: var(--grey-darker) !important;
	border: 0 !important;
	border-radius: 0 !important;
	transition: background-color 0.2s ease;
}

a.DarkCard:hover
{
	background: var(--grey-card-hover) !important;
}

.SectionSplitTitle
{
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

.SectionSplitTitle .LeftCol
{
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.SectionSplitTitle h2
{
	margin-bottom: 36px;
}

.SectionSplitTitle .RightCol
{
	display: flex;
	flex-direction: column;
	gap: 24px;
}

@media (max-width: 1024px) /* --bp-lg */
{
	.SectionSplitTitle
	{
		grid-template-columns: 1fr;
		gap: 32px;
	}
}

/* Built to scale: cards and the module explorer share one 50/50 row so their tops align on every device */
.BuiltToScaleRow
{
	align-items: stretch;
	margin-top: 56px;
}

/* Contained variant: the module explorer sits flush in the row (no full-bleed grey band) */
.BuiltToScaleRow .ModularFlexible
{
	margin-left: 0;
	margin-right: 0;
	padding: 0;
}

.TileTitle
{
	font-family: '42dot Sans', 'Roboto', sans-serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 0.95;
	letter-spacing: -0.01em;
	color: rgb(255, 255, 255);
}

.CardText
{
	font-family: '42dot Sans', 'Roboto', sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--text-muted);
}

/* LeadText: the summary / lead line that sits under a section title.
   Reusable globally; margin is left to context. */
.LeadText
{
	font-family: '42dot Sans', 'Roboto', sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--text-muted);
}

.panelBox
{
	min-height: 60px;

	border: 1px solid rgb(40,48,52);
	background: rgb(20,24,23);
	border-radius: 0;

	padding: 14px 18px;

	transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.panelBox-selected
{
	border: 2px solid rgb(112,220,255);
	background: rgba(0,0,0,0.1);
	color: rgb(220,220,220);
	font-weight: 700;
}

.panelBox-selected:hover
{
	border-color: rgb(112,220,255);
	background: rgba(0,0,0,0.1);
	color: rgb(220,220,220);
}

.panelBox-selected h3
{
	color: rgb(112,255,220);
}

.formSubmitButton
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 0 28px;
	min-height: 58px;
	border: 1px solid rgba(255,255,255,0.08);
	border-radius: 0;
	background: rgba(0,0,0,0.5);
	color: rgb(220,220,220);
	cursor: pointer;
	font-size: 18px;
	font-weight: 700;
	appearance: none;
	transition: border-color 120ms ease, background-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.formSubmitButton:hover
{
	border-color: rgba(255,255,255,0.12);
	background: rgba(0,0,0,0.5);
	color: rgb(220,220,220);
}

.CopyButton
{
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
	padding: 0;
	border: none;
	background-color: rgb(160,160,160);
	-webkit-mask: url('/site/img/icons/copy.svg') no-repeat center;
	mask: url('/site/img/icons/copy.svg') no-repeat center;
	-webkit-mask-size: contain;
	mask-size: contain;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.CopyButton:hover
{
	background-color: rgb(220,220,220);
}

@media (max-width: 768px) /* --bp-md */
{
	.SiteFooter
	{
		padding-bottom: 88px;
	}

	.subtitle
	{
		text-align: left;
		max-width: none;
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}

	.SiteHeader .HeaderNav
	{
		display: none;
	}

	.SiteHeader .NavToggle
	{
		display: inline-flex;
	}

}

@media (max-width: 480px) /* --bp-sm */
{
	.SiteHeader .Indent
	{
		padding: 0 16px;
		min-height: 52px;
		gap: 12px;
	}

	.SiteHeader .Wordmark
	{
		font-size: 22px;
	}

	.SiteHeader .HeaderActions
	{
		gap: 10px;
	}

	.SiteHeader .GreyButton
	{
		padding: 7px 12px;
		font-size: 13px;
	}
}

.GreyButton
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	background: var(--grey-dark);
	color: rgb(255, 255, 255);
	font-family: '42dot Sans', 'Roboto', sans-serif;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 0;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.GreyButton:hover
{
	background: rgb(42, 46, 49);
}

.OutlineButton
{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	background: transparent;
	color: rgb(255, 255, 255);
	font-family: '42dot Sans', 'Roboto', sans-serif;
	font-size: 16px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 0;
	border: 1px solid var(--grey-border);
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.OutlineButton:hover
{
	background: rgba(255, 255, 255, 0.04);
	border-color: rgb(80, 88, 95);
}

.OutlineButton-icon
{
	width: 14px;
	height: 14px;
	background-color: currentColor;
	-webkit-mask: url('/site/img/icons/arrow_up_right.svg') no-repeat center / contain;
	        mask: url('/site/img/icons/arrow_up_right.svg') no-repeat center / contain;
	flex: 0 0 auto;
}

/*
 * DocumentationWrapper — shared docs / tutorial typography.
 * Duplicated in api_reference.html for that page's scoped rules; centralising
 * here so tutorials + any future long-form pages inherit the same cascade
 * without wiring in the api_reference template.
 */

.DocumentationWrapper
{
	color: rgba(255, 255, 255, 0.78);
	font-family: '42dot Sans', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	letter-spacing: 0;
	text-align: left;
}

.DocumentationWrapper h1
{
	font-family: '42dot Sans', sans-serif;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.015em;
	margin: 0 0 24px 0;
	padding: 0 0 14px 0;
	color: rgb(255, 255, 255);
	background: transparent;
	border-bottom: 1px solid var(--grey-border);
}

.DocumentationWrapper h2
{
	font-family: '42dot Sans', sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.01em;
	margin: 40px 0 12px 0;
	color: rgb(255, 255, 255);
	text-align: left;
}

.DocumentationWrapper h3
{
	font-family: '42dot Sans', sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0;
	margin: 28px 0 10px 0;
	color: rgba(255, 255, 255, 0.92);
	text-transform: none;
}

.DocumentationWrapper h4
{
	font-family: '42dot Sans', sans-serif;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.06em;
	margin: 22px 0 8px 0;
	color: rgba(255, 255, 255, 0.5);
	text-transform: uppercase;
}

.DocumentationWrapper p
{
	margin: 0 0 14px 0;
	font-family: '42dot Sans', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

.DocumentationWrapper a
{
	color: rgb(255, 255, 255);
	text-decoration: none;
	border-bottom: 1px solid var(--grey-border);
}

.DocumentationWrapper a:hover
{
	border-bottom-color: rgb(255, 255, 255);
}

.DocumentationWrapper p a
{
	color: rgb(255, 255, 255);
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	border-bottom: none;
}

.DocumentationWrapper p a:hover
{
	color: rgb(220, 220, 220);
}

.DocumentationWrapper ul,
.DocumentationWrapper ol
{
	margin: 0 0 16px 0;
	padding-left: 22px;
	list-style-position: outside;
}

.DocumentationWrapper li
{
	margin-bottom: 6px;
	padding-left: 4px;
	font-family: '42dot Sans', sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.78);
}

.DocumentationWrapper li:last-child
{
	margin-bottom: 0;
}

.DocumentationWrapper li::marker
{
	color: rgba(255, 255, 255, 0.32);
}

.DocumentationWrapper strong
{
	font-weight: 600;
	color: rgb(255, 255, 255);
}

.DocumentationWrapper pre
{
	background: var(--grey-darker);
	border: 0;
	padding: 18px 20px;
	border-radius: 0;
	overflow-x: auto;
	margin: 20px 0;
}

.DocumentationWrapper code
{
	font-family: 'Google Sans Code', monospace;
	font-weight: 400;
	font-size: 14px;
	letter-spacing: 0;
}

.DocumentationWrapper pre code
{
	display: block;
	margin-top: 0;
	padding-top: 0;
}

.DocumentationWrapper :not(pre) > code
{
	background: var(--grey-dark);
	padding: 1px 6px;
	color: rgb(255, 255, 255);
}

.DocumentationWrapper hr
{
	border: 0;
	border-top: 1px solid var(--grey-border);
	margin: 40px 0;
}

@media (max-width: 480px) /* --bp-sm */
{
	.DocumentationWrapper code
	{
		font-size: 12px;
	}
}
