:root {
  --docs-background-color: var(--lo-color-neutral-100);
  --docs-border-color: var(--lo-color-neutral-90);
  --docs-border-width: 1px;
  --docs-border-radius: 0;
  --docs-content-max-width: 976px;
  --docs-header-height: 4.5rem;
  --docs-header-background-color: var(--lo-color-neutral-95);
  --docs-sidebar-width: 260px;
  --docs-sidebar-transition-speed: 250ms;
  --docs-sidebar-background-color: var(--lo-color-neutral-95);
  --docs-content-toc-max-width: 260px;
  --docs-content-padding: 2rem;
  --docs-content-vertical-spacing: 2rem;
  --docs-search-overlay-background: rgb(0 0 0 / 0.2);
  --docs-skip-to-main-width: 200px;
  --color-docs-highlight: var(--lo-color-primary-50, var(--lo-color-neutral-50));
}

/* Light theme */
:root {
  color-scheme: normal;

  /* Documentation highlight colors */
  --color-code-highlight-1: hsl(0 72.2% 50.6%);
  --color-code-highlight-2: hsl(221.2 83.2% 53.3%);
  --color-code-highlight-3: hsl(333.3 71.4% 50.6%);
  --color-code-highlight-4: hsl(181.4 93.5% 26.4%);
  --color-code-highlight-5: hsl(263.4 70% 50.4%);
  --color-code-highlight-6: hsl(20.5 90.2% 48.2%);

  --docs-overlay-color: hsl(240 3.8% 46.1% / 33%);
  --docs-border-color: var(--lo-color-neutral-70);
  --docs-shadow-x-small: 0 1px 2px hsl(240 3.8% 46.1% / 12%);
  --docs-shadow-small: 0 1px 2px hsl(240 3.8% 46.1% / 24%);
  --docs-shadow-medium: 0 2px 4px hsl(240 3.8% 46.1% / 24%);
  --docs-shadow-large: 0 2px 8px hsl(240 3.8% 46.1% / 24%);
  --docs-shadow-x-large: 0 4px 16px hsl(240 3.8% 46.1% / 24%);
}

/* Dark theme */
html[class*='-dark'] {
  color-scheme: dark;

  --docs-background-color: hsl(240, 5.9%, 11%);
  --docs-sidebar-background-color: var(--lo-color-neutral-98);

  /* Documentation highlight colors */
  --color-code-highlight-1: hsl(0 98.6% 67.9%);
  --color-code-highlight-2: hsl(213.3 100% 65%);
  --color-code-highlight-3: hsl(327.4 97.6% 78.7%);
  --color-code-highlight-4: hsl(156.2 76.1% 63.8%);
  --color-code-highlight-5: hsl(253 100% 81.5%);
  --color-code-highlight-6: hsl(31.3 100% 68.7%);

  --docs-overlay-color: hsl(0 0% 0% / 66%);
  --docs-shadow-x-small: 0 1px 2px rgb(0 0 0 / 36%);
  --docs-shadow-small: 0 1px 2px rgb(0 0 0 / 48%);
  --docs-shadow-medium: 0 2px 4px rgb(0 0 0 / 48%);
  --docs-shadow-large: 0 2px 8px rgb(0 0 0 / 48%);
  --docs-shadow-x-large: 0 4px 16px rgb(0 0 0 / 48%);
}

p {
  letter-spacing: var(--lo-letter-spacing-normal);
}

/* Utils */
html.lo-theme-dark .only-light,
html:not(.lo-theme-dark) .only-dark {
  display: none !important;
}

.visually-hidden:not(:focus-within) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: none !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  padding: 0 !important;
}

.nowrap {
  white-space: nowrap;
}

@media screen and (max-width: 900px) {
  :root {
    --docs-content-padding: 1rem;
  }
}

/* Bare styles */
*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
button:focus {
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: var(--lo-focus-ring);
  outline-offset: var(--lo-focus-ring-offset);
}

::selection {
  background-color: #00839666;
}

/* Show custom elements only after they're registered */
:not(:defined),
:not(:defined) * {
  opacity: 0;
}

:defined {
  opacity: 1;
  transition: 0.1s opacity;
}

html {
  height: 100%;
  box-sizing: border-box;
  line-height: var(--lo-line-height-normal);
  padding: 0;
  margin: 0;
}

body {
  height: 100%;
  font: 16px var(--lo-font-sans);
  font-weight: var(--lo-font-weight-normal);
  background-color: var(--docs-sidebar-background-color);
  line-height: var(--lo-line-height-normal);
  color: var(--lo-color-neutral-7);
  padding: 0;
  margin: 0;
  overflow-x: hidden;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

/* Common elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--lo-font-sans);
  font-weight: var(--lo-font-weight-bold);
  margin: 3rem 0 1.5rem 0;
}

h4,
h5,
h6 {
  margin: 1.75rem 0 1.25rem 0;
}

h1:first-of-type {
  margin-top: 1rem;
}

h1 {
  font-size: var(--lo-font-size-h1);
}

h2 {
  font-size: var(--lo-font-size-h2);
  border-bottom: solid var(--docs-border-width) var(--docs-border-color);
}

h3 {
  font-size: var(--lo-font-size-h3);
}

h4 {
  font-size: var(--lo-font-size-h4);
}

h5 {
  font-size: var(--lo-font-size-h5);
}

h6 {
  font-size: var(--lo-font-size-h6);
}

p {
  margin-block-end: 1.5em;
}

img {
  max-width: 100%;
}

.badges img {
  border-radius: var(--lo-border-radius-medium);
}

.callout img,
details img {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

details pre {
  border: solid var(--docs-border-width) var(--docs-border-color);
}

main a {
  color: var(--lo-color-link-text);
}

a:hover {
  color: var(--lo-color-primary-20);
}

abbr[title] {
  text-decoration: none;
  border-bottom: dashed 1px var(--lo-color-neutral-30);
  cursor: help;
}

em {
  font-style: italic;
}

strong {
  font-weight: var(--lo-font-weight-bold);
}

code {
  font-family: var(--font-mono);
  font-size: 0.9125em;
  background-color: var(--lo-color-neutral-95);
  background-blend-mode: darken;
  border-radius: var(--docs-border-radius);
  padding: 0.125em 0.25em;
}

.lo-theme-dark code {
  background-color: rgba(255 255 255 / 0.03);
}

kbd {
  background: var(--lo-color-neutral-80);
  font-family: var(--font-mono);
  font-size: 0.9125em;
  border-radius: var(--docs-border-radius);
  color: var(--lo-color-neutral-7);
  padding: 0.125em 0.4em;
}

ins {
  background-color: var(--lo-color-status-success-container);
  color: var(--lo-color-status-on-success-container);
  border-radius: var(--docs-border-radius);
  text-decoration: none;
  padding: 0.125em 0.25em;
}

s {
  background-color: var(--lo-color-status-alert-container);
  color: var(--lo-color-status-on-alert-container);
  border-radius: var(--docs-border-radius);
  text-decoration: none;
  padding: 0.125em 0.25em;
}

mark {
  background-color: var(--lo-color-yellow-90);
  border-radius: var(--docs-border-radius);
  padding: 0.125em 0.25em;
}

hr {
  border: none;
  border-bottom: solid var(--docs-border-width) var(--docs-border-color);
  margin: calc(var(--docs-content-vertical-spacing) * 2) 0;
}

/* Block quotes */
blockquote {
  position: relative;
  font-family: var(--lo-font-sans);
  font-size: 1.33rem;
  font-style: italic;
  color: var(--lo-color-neutral-30);
  background-color: var(--lo-color-neutral-100);
  border-radius: var(--docs-border-radius);
  border-left: solid 6px var(--lo-color-neutral-80);
  padding: 1.5rem;
  margin: 0 0 1.5rem 0;
}

blockquote > :first-child {
  margin-top: 0;
}

blockquote > :last-child {
  margin-bottom: 0;
}

/* Lists */
ul,
ol {
  padding: 0;
  margin: 0 0 var(--docs-content-vertical-spacing) 2rem;
}

ul {
  list-style: disc;
}

li {
  padding: 0;
  margin: 0 0 0.25rem 0;
}

li ul,
li ol {
  margin-top: 0.25rem;
}

ul ul:last-child,
ul ol:last-child,
ol ul:last-child,
ol ol:last-child {
  margin-bottom: 0;
}

/* Anchor headings */
.anchor-heading {
  position: relative;
  color: inherit;
  text-decoration: none;
}

.anchor-heading a {
  text-decoration: none;
  color: inherit;
}

.anchor-heading a::after {
  content: '#';
  color: var(--lo-color-neutral-30);
  margin-inline: 0.5rem;
  opacity: 0;
  transition: 100ms opacity;
}

.anchor-heading:hover a::after,
.anchor-heading:focus-within a::after {
  opacity: 1;
}

/* External links */
.external-link__icon {
  width: 0.75em;
  height: 0.75em;
  vertical-align: 0;
  margin-left: 0.25em;
  margin-right: 0.125em;
}

/* Tables */
table {
  max-width: 100%;
  border: none;
  border-collapse: collapse;
  color: inherit;
  /* margin-bottom: var(--docs-content-vertical-spacing); */
}

table tr {
  border-bottom: solid var(--docs-border-width) var(--docs-border-color);
}

table th {
  font-weight: var(--lo-font-weight-semibold);
  text-align: left;
}

table td,
table th {
  line-height: var(--lo-line-height-normal);
  padding: 1rem 1rem;
}

table th p:first-child,
table td p:first-child {
  margin-top: 0;
}

table th p:last-child,
table td p:last-child {
  margin-bottom: 0;
}

table th:first-of-type {
  width: 40%;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll table {
  width: 100%;
}

html[class$='-dark'] .table-scroll table tbody tr:nth-child(odd) {
  background-color: var(--lo-color-neutral-80);
}

.table-scroll table tbody tr:nth-child(odd) {
  background-color: var(--lo-color-neutral-98);
}

th.table-name,
th.table-event-detail {
  min-width: 15ch;
}

th.table-description {
  min-width: 50ch !important;
  max-width: 70ch;
}

/* Code blocks */
pre {
  position: relative;
  background-color: var(--lo-color-neutral-80);
  font-family: var(--font-mono);
  color: var(--lo-color-neutral-7);
  border-radius: var(--docs-border-radius);
  padding: 1rem;
  white-space: pre;
}

.lo-theme-dark pre {
  background-color: var(--lo-color-neutral-95);
}

pre:not(:last-child) {
  margin-bottom: 1.5rem;
}

pre > code {
  display: block;
  border-radius: 0;
  hyphens: none;
  tab-size: 2;
  white-space: pre;
  padding: 1rem;
  margin: -1rem;
  overflow: auto;
}

pre .token.comment {
  color: var(--lo-color-neutral-40);
}

pre .token.prolog,
pre .token.doctype,
pre .token.cdata,
pre .token.operator,
pre .token.punctuation {
  color: var(--lo-color-neutral-30);
}

.namespace {
  opacity: 0.7;
}

pre .token.property,
pre .token.keyword,
pre .token.tag,
pre .token.url {
  color: var(--color-code-highlight-2);
}

pre .token.symbol,
pre .token.deleted {
  color: var(--color-code-highlight-1);
}

pre .token.boolean,
pre .token.constant,
pre .token.selector,
pre .token.attr-name,
pre .token.string,
pre .token.char,
pre .token.builtin,
pre .token.inserted {
  color: var(--color-code-highlight-4);
}

pre .token.atrule,
pre .token.attr-value,
pre .token.number,
pre .token.variable {
  color: var(--color-code-highlight-3);
}

pre .token.function,
pre .token.class-name,
pre .token.regex {
  color: var(--color-code-highlight-1);
}

pre .token.important {
  color: var(--color-code-highlight-1);
}

pre .token.important,
pre .token.bold {
  font-weight: bold;
}

pre .token.italic {
  font-style: italic;
}

/* Copy code button */
.copy-code-button {
  position: absolute;
  top: 0;
  right: 0;
  white-space: normal;
  color: var(--lo-color-neutral-7);
  transition:
    150ms opacity,
    150ms scale;
}

.copy-code-button::part(button) {
  background-color: var(--lo-color-neutral-80);
  border-radius: 0 var(--docs-border-radius) 0 var(--docs-border-radius);
  padding: 0.75rem;
}

.copy-code-button::part(button):hover {
  background-color: var(--lo-color-neutral-70);
}

.copy-code-button::part(button):active {
  background-color: var(--lo-color-neutral-60);
}

pre .copy-code-button {
  opacity: 0;
  scale: 0.75;
}

pre:hover .copy-code-button,
.copy-code-button:focus-within {
  opacity: 1;
  scale: 1;
}

/* Callouts */
.callout {
  position: relative;
  background-color: var(--lo-color-status-info-container);
  border-left: solid var(--lo-size-large) var(--lo-color-status-info);
  border-radius: var(--docs-border-radius);
  color: var(--lo-color-neutral-15);
  padding: 1.25rem;
  margin-bottom: var(--docs-content-vertical-spacing);
}

.callout > :first-child {
  margin-top: 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

.callout--tip {
  background-color: var(--lo-color-status-info-container);
  border-left-color: var(--lo-color-status-info);
  color: var(--lo-color-status-on-info-container);
}

.callout::before {
  content: '';
  position: absolute;
  top: calc(50% - 0.8rem);
  left: calc(-1.5rem);
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lo-font-serif);
  font-weight: var(--lo-font-weight-bold);
  color: var(--lo-color-neutral-0);
}

.callout--tip::before {
  content: 'i';
  color: var(--lo-color-status-on-info);
}

.callout--warning {
  background-color: var(--lo-color-status-warning-container);
  border-left-color: var(--lo-color-status-warning);
  color: var(--lo-color-on-warning-container);
}

.callout--warning::before {
  content: '!';
  color: var(--lo-color-status-on-warning);
}

.callout--danger {
  background-color: var(--lo-color-status-alert-container);
  border-left-color: var(--lo-color-status-alert);
  color: var(--lo-color-status-on-alert-container);
}

.callout--danger::before {
  content: '‼';
  color: var(--lo-color-status-on-alert);
}

.callout + .callout {
  margin-top: calc(-0.5 * var(--docs-content-vertical-spacing));
}

.callout a {
  color: inherit;
}

/* Aside */
.content aside {
  float: right;
  min-width: 300px;
  max-width: 50%;
  background: var(--lo-color-neutral-100);
  border-radius: var(--docs-border-radius);
  padding: 1rem;
  margin-left: 1rem;
}

.content aside > :first-child {
  margin-top: 0;
}

.content aside > :last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 600px) {
  .content aside {
    float: none;
    width: calc(100% + (var(--docs-content-padding) * 2));
    max-width: none;
    margin: var(--docs-content-vertical-spacing) calc(-1 * var(--docs-content-padding));
  }
}

/* Details */
.content details {
  background-color: var(--lo-color-neutral-100);
  border-radius: var(--docs-border-radius);
  padding: 1rem;
  margin: 0 0 var(--docs-content-vertical-spacing) 0;
}

.content details summary {
  font-weight: var(--lo-font-weight-semibold);
  border-radius: var(--docs-border-radius);
  padding: 1rem;
  margin: -1rem;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.content details summary span {
  padding-left: 0.5rem;
}

.content details[open] summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 1rem;
}

.content details[open] summary:focus-visible {
  border-radius: var(--docs-border-radius);
}

.content details > :last-child {
  margin-bottom: 0;
}

.content details > :nth-child(2) {
  margin-top: 0;
}

.content details + details {
  margin-top: calc(-1 * var(--docs-content-vertical-spacing) + (2 * var(--docs-border-width)));
}

.header-docs {
  display: flex;
  background-color: var(--docs-header-background-color);
  height: var(--lo-size-medium);
}

/* Sidebar */
#sidebar {
  position: fixed;
  flex: 0;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 20;
  box-sizing: border-box;
  width: var(--docs-sidebar-width);
  background-color: var(--docs-sidebar-background-color);
  border-radius: 0;
  padding: 0;
  margin: 0;
  transition: var(--docs-sidebar-transition-speed) translate ease-in-out;
}

#sidebar lo-tree-item:not(:has(lo-tree-item))::part(expand-button) {
  display: none;
}

#sidebar lo-tree-item:not(:has(lo-tree-item))::part(label) {
  margin-left: 0.875rem;
}

#sidebar lo-tree-item:has(lo-tree-item)::part(label) {
  font-weight: var(--lo-font-weight-bold);
}

#sidebar > header {
  margin-bottom: 1.25rem;
  padding: 0 1rem;
  margin-top: 1rem;
}

#sidebar > header h1 {
  margin: 0;
}

.sidebar-header-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  width: 100%;
  background: var(--lo-color-primary-7);
  font-family: var(--lo-font-sans);
  font-weight: bold;
  clip-path: polygon(100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 0);
  padding: 0.5rem 0.875rem;
  flex: 1 1 auto;
  gap: 0.125rem;
  color: var(--lo-color-primary-100);
  line-height: 1;
}

#sidebar > header a {
  display: flex;
  width: 100%;
  align-items: center;
  border-radius: var(--docs-border-radius);
  text-decoration: none;
}

#sidebar > header p {
  font-size: calc(var(--lo-font-size-3x-large));
  margin: 0;
}

#sidebar > header img {
  display: block;
  width: 3rem;
  height: auto;
}

#sidebar nav {
  overflow: auto;
  scrollbar-width: thin;
  max-height: calc(100vh - 164px);
}

#sidebar nav::-webkit-scrollbar {
  width: 4px;
}

#sidebar nav::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 9999px;
}

#sidebar nav:hover::-webkit-scrollbar-thumb {
  background: var(--lo-color-neutral-60);
}

#sidebar nav:hover::-webkit-scrollbar-track {
  background: var(--lo-color-primary-100);
}

#sidebar nav a {
  text-decoration: none;
}

#sidebar nav h2 {
  font-size: var(--lo-font-size-medium);
  font-weight: var(--lo-font-weight-semibold);
  border-bottom: solid var(--docs-border-width) var(--docs-border-color);
  margin: 1.5rem 0 0.5rem 0;
}

#sidebar ul {
  padding: 0;
  margin: 0;
}

#sidebar nav .active-link {
  color: var(--lo-color-body-text);
  font-weight: var(--lo-font-weight-bold);
}

#sidebar ul li {
  list-style: none;
  padding: 0;
  margin: 0.125rem 0.5rem;
}

#sidebar ul ul ul {
  margin-left: 0.75rem;
}

#sidebar ul li a {
  line-height: 1.33;
  color: inherit;
  display: inline-block;
  padding: 0;
}

#sidebar ul li a:not(.active-link):hover {
  color: var(--lo-color-neutral-40);
}

@media screen and (max-width: 900px) {
  #sidebar {
    translate: -100%;
    top: var(--docs-header-height);
    opacity: 0;
    width: 100%;
    transition: all 0.25s ease;
  }

  #sidebar nav {
    max-height: calc(100vh - 220px);
  }

  .sidebar-open #sidebar {
    translate: 0;
    opacity: 1;
  }

  .sidebar-open body {
    overflow: hidden;
  }
}

.sidebar-buttons {
  display: flex;
  justify-content: space-between;
}

/* Main content */
main {
  position: relative;
  margin-left: var(--docs-sidebar-width);
  background-color: var(--docs-background-color);
  transition: var(--docs-sidebar-transition-speed) translate ease-in-out;
}

main::before {
  position: absolute;
  content: '';
  z-index: 20;
  top: 0;
  left: 0;
  width: var(--docs-header-height);
  height: var(--docs-header-height);
  clip-path: polygon(100% 0, 0 0, 0 100%);
  background: var(--docs-sidebar-background-color);
}

/* Do not apply to main page to allow hero to be full width */
article.content--with-toc {
  padding: var(--docs-content-vertical-spacing) var(--docs-content-padding)
    calc(var(--docs-content-vertical-spacing) * 2) var(--docs-content-padding);
  padding-top: 0;
}

.sidebar-open .content {
  margin-left: 0;
}

.content__body > :last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 900px) {
  main {
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
  }
}

/* Landing page content */
.landing-page-content {
  max-width: var(--docs-content-max-width);
  margin: 0 auto;
  padding: var(--docs-content-vertical-spacing) var(--docs-content-padding)
    calc(var(--docs-content-vertical-spacing) * 2) var(--docs-content-padding);
  padding-top: 0;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.elevated-card {
  box-shadow: var(--lo-elevation-1);
  display: flex;
  min-height: 100%;
}

.elevated-card [slot='header'] {
  font-size: var(--lo-font-size-x-large);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Component layouts */
.content {
  display: grid;
  grid-template-columns: 100%;
  gap: 2rem;
  position: relative;
}

/** Add ext-link marker to external links in documentation */
.content a:not(.app-name-link)[href^="http"]::after,
.content a:not(.app-name-link)[href^="https://"]::after
{
  content: '';
  width: 11px;
  height: 11px;
  color: var(--lo-color-link-text);
  margin-left: 7px;
  margin-right: 2px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E")
    no-repeat 50% 50%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E")
    no-repeat 50% 50%;
  -webkit-mask-size: cover;
  mask-size: cover;
  background-color: var(--lo-color-link-text);
  display: inline-block;
}

.content--with-toc {
  /* There's a 2rem gap, so we need to remove it from the column */
  grid-template-columns: calc(75% - 2rem) min(25%, var(--docs-content-toc-max-width));
  max-width: calc(var(--docs-content-max-width) + var(--docs-content-toc-max-width));
  margin: 0 auto;
}

.content__body {
  order: 1;
  width: 100%;
}

.content:not(.content--with-toc) .content__toc {
  display: none;
}

.content__toc {
  order: 2;
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

.content__toc ul {
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 6rem);
  font-size: var(--lo-font-size-small);
  line-height: 1.33;
  border-left: solid 1px var(--lo-color-neutral-80);
  list-style: none;
  padding: 1rem 0;
  margin: 0;
  padding-left: 1rem;
  overflow-y: auto;
}

.content__toc li {
  padding: 0 0 0 0.5rem;
  margin: 0;
}

.content__toc li[data-level='3'] {
  margin-left: 1rem;
}

/* We don't use them, but just in case */
.content__toc li[data-level='4'],
.content__toc li[data-level='5'],
.content__toc li[data-level='6'] {
  margin-left: 2rem;
}

.content__toc li:not(:last-of-type) {
  margin-bottom: 0.6rem;
}

.content__toc a {
  color: var(--lo-color-neutral-40);
  text-decoration: none;
}

.content__toc a:hover {
  color: var(--lo-color-neutral-50);
}

.content__toc a.active {
  color: var(--lo-color-primary-7);
  font-weight: var(--lo-font-weight-bold);
  border-bottom: dashed 1px var(--lo-color-neutral-70);
}

.content__toc .top a {
  font-weight: var(--lo-font-weight-bold);
  color: var(--lo-color-neutral-15);
  font-size: var(--lo-font-size-large);
}

@media screen and (max-width: 1024px) {
  .content {
    grid-template-columns: 100%;
    gap: 0;
  }

  .content__toc {
    position: relative;
    order: 1;
    margin-bottom: var(--lo-spacing-large);
  }

  .content__toc ul {
    display: flex;
    justify-content: start;
    gap: 1rem 1.5rem;
    position: static;
    border: none;
    border-bottom: solid 1px var(--lo-color-neutral-90);
    border-radius: 0;
    padding: 1rem 1.5rem 1rem 0.5rem; /* extra right padding to hide the fade effect */
    margin-top: 1rem;
    overflow-x: auto;
  }

  .content__toc ul::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 1rem; /* don't cover the scrollbar */
    right: 0;
    width: 2rem;
    background: linear-gradient(90deg, rgba(0 0 0 / 0) 0%, var(--docs-background-color) 100%);
  }

  .content__toc li {
    white-space: nowrap;
  }

  .content__toc li:not(:last-of-type) {
    margin-bottom: 0;
  }

  .content__toc [data-level]:not([data-level='2']) {
    display: none;
  }

  .content__body {
    order: 2;
  }

  .content__toc a.active {
    color: var(--lo-color-primary-7);
    font-weight: var(--lo-font-weight-regular);
    border-bottom: dashed 1px var(--lo-color-neutral-70);
  }
}

/* Menu toggle */
#menu-toggle {
  display: none;
  position: fixed;
  z-index: 30;
  top: calc(var(--docs-header-height) / 6);
  left: calc(var(--docs-header-height) / 6);
  height: auto;
  width: auto;
  color: var(--lo-color-primary-7);
  background: var(--docs-background-color);
  border: none;
  padding: 0.5rem;
  font-size: 24px;
  margin: 0;
  cursor: pointer;
  transition:
    250ms scale ease,
    250ms rotate ease;
}

@media screen and (max-width: 900px) {
  #menu-toggle {
    display: flex;
  }
  article.content--with-toc {
    padding: var(--docs-content-vertical-spacing) var(--docs-content-padding)
      calc(var(--docs-content-vertical-spacing) * 2) var(--docs-content-padding);
    padding-top: 0;
  }
  :root {
    --docs-header-height: 3.5rem;
  }

  main::before {
    display: none;
  }
}

.lo-theme-dark #menu-toggle {
  color: white;
}

#menu-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Skip to main content */
#skip-to-main {
  position: fixed;
  top: 0.25rem;
  left: calc(50% - var(--docs-skip-to-main-width) / 2);
  z-index: 100;
  width: var(--docs-skip-to-main-width);
  text-align: center;
  text-decoration: none;
  border-radius: 9999px;
  background: var(--lo-color-neutral-0);
  color: var(--lo-color-neutral-1000);
  padding: 0.5rem;
}

/* Icon toolbar */
#icon-toolbar {
  display: flex;
  position: sticky;
  align-items: center;
  justify-content: flex-end;
  top: 0rem;
  right: 3rem;
  height: var(--docs-header-height);
  z-index: 10;
  background: var(--docs-background-color);
  border-bottom-left-radius: calc(var(--docs-border-radius) * 2);
  border-bottom-right-radius: calc(var(--docs-border-radius) * 2);
  padding: var(--lo-spacing-medium) var(--lo-spacing-large);
}

/* Remove border from main combobox */
#icon-toolbar lo-select::part(combobox) {
  width: 120px;
}

/* Remove border when focused */
#icon-toolbar lo-select:focus-within::part(combobox) {
  box-shadow: none;
}

#icon-toolbar lo-select lo-icon {
  font-size: var(--lo-font-size-medium);
}

#icon-toolbar lo-switch::part(base) {
  margin-left: var(--lo-spacing-small);
  --width: 54px;
  --height: 28px;
  --thumb-size: 22px;
}

#icon-toolbar lo-switch::part(control) {
  box-shadow: none;
}

#icon-toolbar lo-switch::part(control) {
  box-shadow: none;
}

#icon-toolbar button,
#icon-toolbar a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  border-radius: var(--docs-border-radius);
  font-size: 1.25rem;
  color: var(--lo-color-neutral-0);
  text-decoration: none;
  padding: 0.5rem;
  margin: 0;
  cursor: pointer;
}

#theme-selector:not(:defined) {
  /* Hide when not defined to prevent extra wide icon toolbar while loading */
  display: none;
}

#theme-selector lo-menu {
  /* Set an initial size to prevent width being too small when first opening on small screen width */
  width: 140px;
}

#theme-selector lo-button {
  transition: 250ms scale ease;
}

#theme-selector lo-button::part(base) {
  color: var(--lo-color-neutral-0);
}

#theme-selector lo-button::part(label) {
  display: flex;
  padding: 0.5rem;
}

#theme-selector lo-icon {
  font-size: 1.25rem;
}

.lo-theme-dark #theme-selector lo-button::part(base) {
  color: var(--lo-color-primary-7);
}

.lo-theme-dark #icon-toolbar {
  background: var(--docs-background-color);
}

.lo-theme-dark #icon-toolbar button,
.lo-theme-dark #icon-toolbar a {
  color: var(--lo-color-primary-7);
}

#icon-toolbar a:not(:last-child),
#icon-toolbar button:not(:last-child) {
  margin-right: 0.25rem;
}

@media screen and (max-width: 900px) {
  #icon-toolbar {
    right: 0;
    border-bottom-right-radius: 0;
    padding: var(--lo-spacing-2x-small) var(--lo-spacing-medium);
  }

  #icon-toolbar button,
  #icon-toolbar a {
    font-size: 1rem;
    padding: 0.5rem;
  }

  #theme-selector lo-icon {
    font-size: 1.25rem;
  }
}

/* Sidebar addons */
#sidebar-addons:not(:empty) {
  margin-bottom: var(--docs-content-vertical-spacing);
}

/* Print styles */
@media print {
  a:not(.anchor-heading)[href]::after {
    content: ' (' attr(href) ')';
  }

  details,
  pre,
  .callout {
    border: solid var(--docs-border-width) var(--docs-border-color);
  }

  details summary {
    list-style: none;
  }

  details summary span {
    padding-left: 0;
  }

  details summary::marker,
  details summary::-webkit-details-marker {
    display: none;
  }

  .callout::before {
    border: solid var(--docs-border-width) var(--docs-border-color);
  }

  .component-page__navigation,
  .copy-code-button {
    display: none !important;
  }

  #sidebar {
    display: none;
  }

  #content {
    margin-left: 0;
  }

  #menu-toggle,
  #icon-toolbar,
  .external-link__icon {
    display: none;
  }
}

/* Hero */
.hero {
  display: flex;
  position: relative;
  width: 100%;
  align-items: center;
  padding: 4rem 6rem;
  color: var(--lo-color-primary-7);
  overflow: hidden;
  transition: padding 0.25s ease;
  border-top: solid var(--docs-border-width) var(--docs-border-color);
  border-bottom: solid var(--docs-border-width) var(--docs-border-color);
}

.hero-background-grid {
  position: absolute;
  right: var(--lo-spacing-4x-large);
  height: 336px;
}

.hero-text h1 {
  font-size: var(--lo-font-size-4x-large);
  margin: 0;
}

@media screen and (max-width: 1280px) {
  .hero {
    padding: 4rem 2.5rem;
  }

  .hero-text > h1 {
    font-size: var(--lo-font-size-3x-large);
  }

  .hero-text > p {
    font-size: var(--lo-font-size-large);
  }

  .hero-background-grid {
    display: none;
  }
}

body[data-page^='/tokens/'] .table-wrapper td:first-child,
body[data-page^='/tokens/'] .table-wrapper td:first-child code {
  white-space: nowrap;
}

/* Color palettes */
.color-code {
  font-size: 14px;
  box-shadow: var(--lo-elevation-2);
  position: absolute;
  left: 4px;
  top: 4px;
}

.color-code:hover {
  cursor: pointer;
}

.color-palette {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 1rem var(--lo-spacing-small);
  margin: 2rem 0;
}

.color-palette__name {
  font-size: var(--lo-font-size-medium);
  grid-column: 1 / -1;
}

.color-palette__example {
  font-size: var(--lo-font-size-small);
  text-align: center;
}

.color-palette__swatch {
  height: 5rem;
  border-radius: var(--lo-border-radius-small);
  position: relative;
  box-shadow: var(--lo-elevation-1);
}

.color-palette__switcher {
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 0.25rem;
}

.color-palette__swatch--border {
  box-shadow: inset 0 0 0 1px var(--color-neutral-300);
}

:host,
html[class*='gray'] {
  /** Color for documentation site */
  --docs-background-color: #e6e6e6 !important;
  --docs-header-background-color: #cccccc !important;
  --docs-sidebar-background-color: var(--lo-color-neutral-80) !important;
}

:host,
html[class*='gray-dark'] {
  /** Color for documentation site */
  --docs-background-color: #2b2b2b !important;
  --docs-header-background-color: #404040 !important;
  --docs-sidebar-background-color: var(--lo-color-neutral-90) !important;
}

.fade-in-top {
  -webkit-animation: fade-in-top 0.6s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation: fade-in-top 0.6s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

.delay-50 {
  animation-delay: 50ms;
}

.delay-250 {
  animation-delay: 250ms;
}

.fade-in-bottom {
  -webkit-animation: fade-in-bottom 0.45s cubic-bezier(0.39, 0.575, 0.565, 1) both;
  animation: fade-in-bottom 0.45s cubic-bezier(0.39, 0.575, 0.565, 1) both;
}

/** Animation fade top */
@-webkit-keyframes fade-in-top {
  0% {
    -webkit-transform: translateY(-50px);
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fade-in-top {
  0% {
    -webkit-transform: translateY(-50px);
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

/** Animation fade in */
@-webkit-keyframes fade-in-bottom {
  0% {
    -webkit-transform: translateY(16px);
    transform: translateY(16px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}
@keyframes fade-in-bottom {
  0% {
    -webkit-transform: translateY(16px);
    transform: translateY(16px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
  }
}

/** Rotating text */
.rotating-text {
  display: inline-block;
  font-weight: var(--lo-font-weight-bold);
}

.rotating-text p {
  display: inline-flex;
  margin: 0;
  vertical-align: top;
}

.rotating-text .word {
  position: absolute;
  display: flex;
  opacity: 0;
}

.rotating-text .letter {
  transform-origin: center center 25px;
}

.rotating-text .letter.out {
  transform: rotateX(90deg);
  transition: 0.32s cubic-bezier(0.6, 0, 0.7, 0.2);
}

.rotating-text .letter.in {
  transition: 0.38s ease;
}

.rotating-text .letter.behind {
  transform: rotateX(-90deg);
}

.evergreen-red {
  color: #e67e80;
}
.evergreen-blue {
  color: #7fbbb3;
}
.evergreen-green {
  color: #a7c080;
}
.evergreen-yellow {
  color: #dbbc7f;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--lo-spacing-medium);
}

.feature-list div:last-child {
  margin-bottom: var(--lo-spacing-medium);
}

.feature-list .rotating-text {
  font-size: var(--lo-font-size-large);
}

.sub-heading {
  font-size: var(--lo-font-size-2x-large);
  font-family: 'Agbalumo', sans-serif;
}

/** Technology categories */
.core::part(base) {
  background: var(--lo-color-data-1);
}
.database::part(base) {
  background: var(--lo-color-data-2);
}
.styling::part(base) {
  background: var(--lo-color-data-4);
}
.data-visualization::part(base) {
  background: var(--lo-color-data-3);
}
.authentication::part(base) {
  background: var(--lo-color-data-5);
}
.validation::part(base) {
  background: var(--lo-color-data-6);
}
.telemetry::part(base) {
  background: var(--lo-color-data-7);
}
