[x-cloak] {
  display: none !important;
}

.component-doc-shell-root {
  height: 100%;
  overflow: hidden;
}

.component-doc-shell {
  height: 100vh;
  overflow: hidden;
  background: var(--color-surface);
  color: var(--color-on-surface);
}

.dark .component-doc-shell {
  background: var(--color-surface-dark);
  color: var(--color-on-surface-dark);
}

.component-doc-shell *,
.component-doc-shell *::before,
.component-doc-shell *::after {
  box-sizing: border-box;
}

.component-doc-shell__header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 4rem;
  border-bottom: 1px solid var(--color-outline);
  background: color-mix(in oklab, var(--color-surface) 95%, transparent);
  backdrop-filter: blur(12px);
}

.dark .component-doc-shell__header {
  border-color: var(--color-outline-dark);
  background: color-mix(in oklab, var(--color-surface-dark) 95%, transparent);
}

.component-doc-shell__header-inner {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
}

.component-doc-shell__brand-group,
.component-doc-shell__controls,
.component-doc-shell__brand {
  display: flex;
  min-width: 0;
  align-items: center;
}

.component-doc-shell__brand-group {
  gap: 1rem;
}

.component-doc-shell__controls {
  gap: 0.5rem;
}

.component-doc-shell__brand {
  gap: 0.5rem;
  color: var(--color-on-surface-strong);
  font-family: var(--font-title), sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.dark .component-doc-shell__brand {
  color: var(--color-on-surface-dark-strong);
}

.component-doc-shell__brand-name {
  display: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.component-doc-shell__brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 0.875rem;
}

.component-doc-shell__brand-logo,
.component-doc-shell__brand-logo img {
  display: block;
  width: 2rem;
  height: 2rem;
}

.component-doc-shell__brand-logo-dark {
  display: none !important;
}

.dark .component-doc-shell__brand-logo-light {
  display: none !important;
}

.dark .component-doc-shell__brand-logo-dark {
  display: block !important;
}

.component-doc-shell__frame {
  display: flex;
  height: calc(100vh - 4rem);
  overflow: hidden;
}

.component-doc-shell__sidebar {
  position: fixed;
  inset: 4rem auto 0 0;
  z-index: 40;
  width: 18rem;
  max-width: calc(100vw - 3rem);
  transform: translateX(-100%);
  transition: transform 200ms ease-in-out;
}

.component-doc-shell__sidebar.is-open {
  transform: translateX(0);
}

.component-doc-shell__sidebar-content {
  height: 100%;
}

.component-doc-shell__backdrop {
  position: fixed;
  inset: 4rem 0 0;
  z-index: 30;
  background: rgb(0 0 0 / 0.5);
}

.component-doc-shell__menu-button,
.component-doc-shell__icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--color-on-surface);
  cursor: pointer;
  padding: 0.5rem;
}

.dark .component-doc-shell__menu-button,
.dark .component-doc-shell__icon-button {
  color: var(--color-on-surface-dark);
}

.component-doc-shell__menu-button:hover,
.component-doc-shell__icon-button:hover {
  background: var(--color-surface-alt);
}

.dark .component-doc-shell__menu-button:hover,
.dark .component-doc-shell__icon-button:hover {
  background: var(--color-surface-dark-alt);
}

.component-doc-shell__main-scroll {
  min-width: 0;
  flex: 1 1 0%;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.component-doc-shell__content-frame {
  display: flex;
  width: 100%;
  max-width: 96rem;
  min-height: 100%;
  margin: 0 auto;
}

.component-doc-shell__main {
  min-width: 0;
  flex: 1 1 0%;
  padding: 1.5rem 1rem;
}

.component-page__example-body > :not([hidden]) ~ :not([hidden]) {
  margin-top: 1rem;
}

.component-page__preview::after {
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-outline);
  border-radius: var(--radius-radius);
  pointer-events: none;
  content: "";
}

.dark .component-page__preview::after {
  border-color: var(--color-outline-dark);
}

.component-doc-shell__main::after {
  display: block;
  height: max(0px, calc(100vh - 10rem));
  content: "";
}

.component-doc-shell__toc {
  display: none;
  width: 15rem;
  flex: 0 0 auto;
}

.component-doc-shell__toc-inner {
  position: fixed;
  top: 4rem;
  bottom: 0;
  width: 15rem;
  overflow-y: auto;
  border-left: 1px solid var(--color-outline);
  padding: 2rem 1.5rem;
}

.dark .component-doc-shell__toc-inner {
  border-color: var(--color-outline-dark);
}

.component-doc-shell__toc-title {
  margin: 0 0 0.75rem;
  color: var(--color-on-surface-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dark .component-doc-shell__toc-title {
  color: var(--color-on-surface-dark-muted);
}

.component-doc-shell__toc-list {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-outline);
}

.dark .component-doc-shell__toc-list {
  border-color: var(--color-outline-dark);
}

.component-doc-shell__toc-list a {
  margin-left: -1px;
  border-left: 1px solid transparent;
  padding: 0.375rem 0 0.375rem 1rem;
  color: var(--color-on-surface-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.dark .component-doc-shell__toc-list a {
  color: var(--color-on-surface-dark-muted);
}

.component-doc-shell__toc-list a.is-active {
  border-color: var(--color-primary);
  color: var(--color-on-surface-strong);
  font-weight: 500;
}

.dark .component-doc-shell__toc-list a.is-active {
  border-color: var(--color-primary-dark);
  color: var(--color-on-surface-dark-strong);
}

.component-doc-shell__footer {
  margin-top: 3rem;
}

.component-doc-shell__repository {
  display: none;
}

.component-doc-shell__skip:focus {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
}

@media (min-width: 640px) {
  .component-doc-shell__header-inner {
    padding: 0 1.5rem;
  }

  .component-doc-shell__repository {
    display: inline-flex;
  }

  .component-doc-shell__brand-name {
    display: inline;
  }

  .component-doc-shell__main {
    padding: 2rem 1.5rem;
  }
}

@media (min-width: 720px) {
  .component-doc-shell__header-inner {
    padding: 0 2rem;
  }

  .component-doc-shell__menu-button,
  .component-doc-shell__backdrop {
    display: none;
  }

  .component-doc-shell__sidebar {
    position: static;
    width: 18rem;
    max-width: none;
    height: 100%;
    flex: 0 0 auto;
    transform: none;
  }

  .component-doc-shell__main {
    padding: 2rem;
  }
}

@media (min-width: 1280px) {
  .component-doc-shell__toc[data-enabled="true"] {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .component-doc-shell__sidebar {
    transition: none;
  }
}
