:root{
    --font-display: 'Space Grotesk', system-ui, sans-serif;
    --font-text: 'DM Sans', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

h1, h2, h3 {
    font-family: var(--font-display);
}

body {
    font-family: var(--font-text);
    background-color: #FBFBFD;
}

.app-ui{
    height: 100vh;
    overflow: hidden;
}

aside, main{
    height: 100%;
    overflow: auto;
}

.sidebar.sidebar--static {
    background: var(--color-primary-darker);
    color: var(--color-white);
    max-width: 280px;
}

.sidebar.sidebar--static a{
    color: hsl(
        var(--color-primary-h), 
        var(--color-primary-s), 
        90);
}
.sidebar.sidebar--static a:hover{
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.08);
}

.sidebar:not(.sidebar--static) a{
    color: var(--color-contrast-higher);
}

.sidebar:not(.sidebar--static) a:hover{
    color: var(--color-white);
    background: var(--color-primary-light);
}

.sidebar:not(.sidebar--static) {
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--z-index-fixed-element, 10);
    width: 100%;
    height: 100%;
    visibility: hidden;
    transition: visibility 0s 0.3s;
}

.sidebar:not(.sidebar--static)::after {
    /* overlay layer */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: hsla(var(--color-black-h), var(--color-black-s), var(--color-black-l), 0);
    transition: background-color 0.3s;
    z-index: 1;
}

.sidebar:not(.sidebar--static) .sidebar__panel {
    /* content */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    max-width: 380px;
    height: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--color-bg);
    transform: translateX(-100%);
    transition: box-shadow 0.3s, transform 0.3s;
}

.sidebar:not(.sidebar--static).sidebar--right-on-mobile .sidebar__panel {
    left: auto;
    right: 0;
    transform: translateX(100%);
}

.sidebar:not(.sidebar--static).sidebar--is-visible {
    visibility: visible;
    transition: none;
}

.sidebar:not(.sidebar--static).sidebar--is-visible::after {
    background-color: hsla(var(--color-black-h), var(--color-black-s), var(--color-black-l), 0.85);
}

.sidebar:not(.sidebar--static).sidebar--is-visible .sidebar__panel {
    transform: translateX(0);
    box-shadow: var(--shadow-md);
}

.sidebar:not(.sidebar--static) ~ main{
  padding-top: var(--space-xl);
}

.nav-menu__mobile{
  position: absolute;
  z-index: var(--z-index-fixed-element, 10);
}

/* end mobile version */
.sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
}

.sidebar__close-btn {
    --size: 32px;
    width: var(--size);
    height: var(--size);
    display: flex;
    border-radius: 50%;
    background-color: var(--color-bg-light);
    box-shadow: var(--inner-glow), var(--shadow-sm);
    transition: 0.2s;
    flex-shrink: 0;
}

.sidebar__close-btn .icon {
    display: block;
    margin: auto;
}

.sidebar__close-btn:hover {
    background-color: var(--color-bg-lighter);
    box-shadow: var(--inner-glow), var(--shadow-md);
}

/* desktop version only (--static) */
.sidebar--static {
    flex-shrink: 0;
    flex-grow: 1;
}

.sidebar--static .sidebar__header {
    display: none;
}

.sidebar--sticky-on-desktop {
    position: sticky;
    top: var(--space-sm);
    max-height: calc(100vh - var(--space-sm));
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

/* end desktop version */
.sidebar,
.sidebar-loaded\:show {
    opacity: 0;
}

.sidebar--loaded {
    opacity: 1;
}


[class*=sidebar--static]::before {
    display: none;
}

.sidebar--static::before {
    content: "static";
}

.sidebar--static\@xs::before {
    content: "mobile";
}

@media (min-width: 32rem) {
    .sidebar--static\@xs::before {
        content: "static";
    }
}

.sidebar--static\@sm::before {
    content: "mobile";
}

@media (min-width: 48rem) {
    .sidebar--static\@sm::before {
        content: "static";
    }
}

.sidebar--static\@md::before {
    content: "mobile";
}

@media (min-width: 64rem) {
    .sidebar--static\@md::before {
        content: "static";
    }
}

.sidebar--static\@lg::before {
    content: "mobile";
}

@media (min-width: 80rem) {
    .sidebar--static\@lg::before {
        content: "static";
    }
}

.sidebar--static\@xl::before {
    content: "mobile";
}

@media (min-width: 90rem) {
    .sidebar--static\@xl::before {
        content: "static";
    }
}


.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: var(--space-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.brand__logo {
    /* width: 32px;
    height: 32px; */
    /* border-radius: 8px; */
    /* background: var(--color-primary); */
    /* color: var(--color-white); */
    /* display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700; */
    /* font-size: 15px; */
    /* letter-spacing: -0.02em; */
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 600;
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.01em;
}

.brand__sub {
    font-family: var(--font-mono);
    font-size: 10.5px;
    color: var(--color-primary-light);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-top: 2px;
}

.sidenav, .ext-links {
    padding: var(--space-sm);
}

.sidenav__label {
    margin-bottom: var(--space-3xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-family: var(--font-mono);
  }
  .sidenav__label > * {
    color: var(--color-contrast-medium);
    font-size: var(--text-xs);
  }

.ext-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidenav__item a, .ext-links a {
    display: flex;
    align-items: center;
    gap: var(--space-2xs);
    border-radius: var(--radius-sm);
    padding: var(--space-xs);
    font-size: var(--text-sm);
    transition: background 150ms ease, color 150ms ease;
    text-decoration: none;
}

.sidenav__item a{
    font-weight: 400;
}

.sidenav__icon{
    font-size: 4px;
    color: var(--color-primary-light);
}

.ext-links svg {
    width: 14px;
    height: 14px;
    flex: none;
}

code {
    background-color: var(--color-bg-dark);
    font-family: monospace;
    padding: var(--space-4xs) var(--space-3xs);
    border-radius: var(--radius-md);
  }
  code::selection {
    background-color: var(--color-contrast-high);
    color: var(--color-bg-lighter);
  }

  code .k { color: var(--color-accent); }
  code .s { color: #B7F1FC; }
  code .c { color: var(--color-contrast-medium); font-style: italic; }
  
  .code-snippet {
    background-color: var(--color-contrast-higher);
    border-radius: var(--radius-md);
  }
  .code-snippet code {
    background-color: transparent;
    color: var(--color-contrast-lower);
    line-height: 1.45;
    font-size: var(--text-sm);
    display: block;
    padding: var(--space-md);
    overflow-x: auto;
  }

.flash-message {
  position: fixed;
  bottom: var(--space-md);
  left: var(--space-md);
  z-index: var(--z-index-fixed-element, 10);
  background-color: var(--color-bg-light);
  padding: var(--space-xs);
  box-shadow: var(--inner-glow), var(--shadow-ring), var(--shadow-sm);
  border-radius: var(--radius-md);
  color: var(--color-contrast-high);
  font-size: var(--text-sm);
  transition: 0.2s;
  transform: translateY(16px);
  transform-origin: bottom left;
  opacity: 0;
  visibility: hidden;
}

.flash-message__text {
  margin: 0;
}

.flash-message--is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tbl {
    position: relative;
    z-index: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tbl::-webkit-scrollbar {
    height: 8px;
    width: 8px;
  }
  .tbl::-webkit-scrollbar-track {
    background-color: var(--color-contrast-lower);
  }
  .tbl::-webkit-scrollbar-thumb {
    background-color: hsla(var(--color-contrast-higher-h), var(--color-contrast-higher-s), var(--color-contrast-higher-l), 0.9);
    border-radius: 50em;
  }
  .tbl::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-contrast-higher);
  }
  
  .tbl__table {
    width: 100%;
  }
  
  .tbl__body .tbl__row {
    border-bottom: 1px solid var(--color-contrast-lower);
    transition: 0.2s;
  }
  .tbl__body .tbl__row:hover {
    background-color: hsla(var(--color-contrast-higher-h), var(--color-contrast-higher-s), var(--color-contrast-higher-l), 0.05);
  }
  .tbl__body .tbl__row:last-child {
    border-bottom: none;
  }
  
  .tbl__cell {
    padding: var(--space-xs);
  }

  :root {
    --list-space-y: 0.375em;
    --list-offset: 1em;
    --list-line-height-multiplier: 1;
  }
  
  .list, .text-component .list {
    padding-left: 0;
    list-style: none;
  }
  .list ul, .list ol, .text-component .list ul, .text-component .list ol {
    list-style: none;
    margin: 0;
    margin-top: calc((var(--list-space-y) / 2) * var(--text-space-y-multiplier, 1));
    padding-top: calc((var(--list-space-y) / 2) * var(--text-space-y-multiplier, 1));
    padding-left: var(--list-offset);
  }
  .list li, .text-component .list li {
    padding-bottom: calc((var(--list-space-y) / 2) * var(--text-space-y-multiplier, 1));
    margin-bottom: calc((var(--list-space-y) / 2) * var(--text-space-y-multiplier, 1));
    line-height: calc(var(--body-line-height) * var(--list-line-height-multiplier));
  }
  .list > li:last-child, .list ul > li:last-child, .list ol > li:last-child, .text-component .list > li:last-child, .text-component .list ul > li:last-child, .text-component .list ol > li:last-child {
    margin-bottom: 0;
  }
  .list:not(.list--border) > li:last-child, .list ul > li:last-child, .list ol > li:last-child, .text-component .list:not(.list--border) > li:last-child, .text-component .list ul > li:last-child, .text-component .list ol > li:last-child {
    padding-bottom: 0;
  }
  
  /* #region (ul + ol) */
  .list--ul, .text-component .list--ul,
  .list--ol, .text-component .list--ol {
    --list-offset: calc(var(--list-bullet-size) + var(--list-bullet-margin-right));
  }
  .list--ul ul, .list--ul ol, .text-component .list--ul ul, .text-component .list--ul ol,
  .list--ol ul,
  .list--ol ol, .text-component .list--ol ul, .text-component .list--ol ol {
    padding-left: 0;
  }
  @supports (--css: variables) {
    .list--ul li, .text-component .list--ul li,
  .list--ol li, .text-component .list--ol li {
      padding-left: var(--list-offset) !important;
    }
  }
  .list--ul li::before, .text-component .list--ul li::before,
  .list--ol li::before, .text-component .list--ol li::before {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    position: relative;
    top: -0.1em;
  }
  @supports (--css: variables) {
    .list--ul li::before, .text-component .list--ul li::before,
  .list--ol li::before, .text-component .list--ol li::before {
      width: var(--list-bullet-size) !important;
      height: var(--list-bullet-size) !important;
      margin-left: calc(var(--list-bullet-size) * -1) !important;
      left: calc(var(--list-bullet-margin-right) * -1) !important;
    }
  }
  
  .list--ul, .text-component .list--ul {
    --list-bullet-size: 7px;
    --list-bullet-margin-right: 12px;
  }
  .list--ul > li, .text-component .list--ul > li {
    padding-left: 19px;
  }
  .list--ul > li::before, .text-component .list--ul > li::before {
    content: "";
    border-radius: 50%;
    color: var(--color-contrast-lower);
    background-color: currentColor;
    width: 7px;
    height: 7px;
    margin-left: -7px;
    left: -12px;
  }
  .list--ul ul li::before, .text-component .list--ul ul li::before {
    background-color: transparent;
    box-shadow: inset 0 0 0 2px currentColor;
  }
  
  .list--ol, .text-component .list--ol {
    --list-bullet-size: 26px;
    --list-bullet-margin-right: 6px;
    --list-bullet-font-size: 14px;
    counter-reset: list-items;
  }
  .list--ol > li, .text-component .list--ol > li {
    counter-increment: list-items;
    padding-left: 32px;
  }
  .list--ol ol, .text-component .list--ol ol {
    counter-reset: list-items;
  }
  .list--ol > li::before, .text-component .list--ol > li::before {
    content: counter(list-items);
    font-size: var(--list-bullet-font-size, 14px);
    background-color: var(--color-contrast-lower);
    color: var(--color-contrast-high);
    line-height: 1;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    margin-left: -26px;
    left: -6px;
  }
  .list--ol ol > li::before, .text-component .list--ol ol > li::before {
    background-color: transparent;
    box-shadow: inset 0 0 0 2px var(--color-contrast-lower);
  }
  
  
  .list--border li:not(:last-child), .text-component .list--border li:not(:last-child) {
    border-bottom: 1px solid var(--color-contrast-lower);
  }
  .list--border ul, .list--border ol, .text-component .list--border ul, .text-component .list--border ol {
    border-top: 1px solid var(--color-contrast-lower);
  }
  
  
  .list--icons, .text-component .list--icons {
    --list-bullet-size: 24px;
    --list-bullet-margin-right: 8px;
    --list-offset: calc(var(--list-bullet-size) + var(--list-bullet-margin-right));
  }
  .list--icons ul, .list--icons ol, .text-component .list--icons ul, .text-component .list--icons ol {
    padding-left: 32px;
  }
  @supports (--css: variables) {
    .list--icons ul, .list--icons ol, .text-component .list--icons ul, .text-component .list--icons ol {
      padding-left: var(--list-offset);
    }
  }
  
  .list__icon {
    position: relative;
    width: 24px;
    height: 24px;
    margin-right: 8px;
  }
  .list__icon:not(.top-0) {
    top: calc((1em * var(--body-line-height) - 24px) / 2);
  }
  @supports (--css: variables) {
    .list__icon {
      width: var(--list-bullet-size);
      height: var(--list-bullet-size);
      margin-right: var(--list-bullet-margin-right);
    }
    .list__icon:not(.top-0) {
      top: calc((1em * var(--body-line-height) * var(--list-line-height-multiplier) - var(--list-bullet-size)) / 2);
    }
  }
  