/* Dark website stage with Nomo's default light desktop window. */
#nomo-site .nv-playground {
  padding-top: 0;
  padding-bottom: clamp(80px, 8vw, 112px);
  color: var(--n-text);
}
#nomo-site .pg-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  padding-top: 36px;
  border-top: 1px solid #a8b9cc24;
}
#nomo-site .pg-heading h2 {
  color: var(--n-text);
  max-width: 780px;
}
#nomo-site .pg-heading .nv-eyebrow {
  color: #bad4cd;
}
#nomo-site .pg-heading .nv-section-lede,
#nomo-site .pg-demo-note {
  color: var(--n-muted);
}
#nomo-site .pg-demo-note {
  font-size: 12px;
  text-align: right;
  padding-bottom: 4px;
}
#nomo-site .pg-stage {
  position: relative;
  isolation: isolate;
}
#nomo-site .pg-stage::before {
  content: "";
  position: absolute;
  inset: -48px -32px -40px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 58% at 0% 54%, rgb(var(--n-light-rgb) / 20%), transparent 75%),
    radial-gradient(ellipse 48% 42% at 92% 84%, rgb(var(--n-blue-rgb) / 20%), transparent 75%);
}
#nomo-site .pg-window {
  overflow: hidden;
  border: 1px solid #cdd3da;
  border-radius: 9px;
  color: var(--app-text);
  background: var(--app-rail);
  color-scheme: light;
  font-family: var(--font-product);
  box-shadow:
    0 2px 4px #18252c08,
    0 20px 48px -16px #18252c24;
}
#nomo-site [data-demo-theme='dark'] .pg-window {
  color-scheme: dark;
}
#nomo-site .pg-window button {
  color: inherit;
  font: inherit;
  font-size: 13px;
  border: 0;
  background: transparent;
  transition:
    background-color 160ms,
    color 160ms;
}
#nomo-site .pg-window button:disabled {
  cursor: default;
}
#nomo-site .pg-window button:focus-visible,
#nomo-site .pg-window input:focus-visible {
  outline: 2px solid var(--app-accent);
  outline-offset: -2px;
}
#nomo-site .pg-window .pg-icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 4px;
  color: var(--app-muted);
}
#nomo-site .pg-window .pg-icon-button .n-app-icon {
  width: 16px;
  height: 16px;
}
#nomo-site .pg-titlebar {
  gap: 10px;
  padding-left: 8px;
}
#nomo-site .pg-titlebar .n-titlebar-menu {
  gap: 17px;
}
#nomo-site .pg-titlebar .n-titlebar-actions {
  gap: 4px;
}
#nomo-site .pg-titlebar .n-app-name {
  margin-right: 3px;
}
#nomo-site .pg-titlebar .pg-theme-toggle .n-app-icon,
#nomo-site .pg-caption-decoration .n-app-icon {
  width: 14px;
  height: 14px;
}
#nomo-site .pg-caption-decoration {
  display: grid;
  place-items: center;
  width: 28px;
  color: var(--app-muted);
}
#nomo-site .pg-sun {
  display: none;
}
#nomo-site [data-demo-theme='dark'] .pg-moon {
  display: none;
}
#nomo-site [data-demo-theme='dark'] .pg-sun {
  display: block;
}
#nomo-site .pg-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
}
#nomo-site [data-sidebar-open='false'] .pg-layout {
  grid-template-columns: minmax(0, 1fr);
}
#nomo-site [data-sidebar-open='false'] .pg-sidebar {
  display: none;
}
#nomo-site .pg-sidebar {
  min-width: 0;
  padding: 12px 8px;
  background: var(--app-rail);
}
#nomo-site .pg-folder-title {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 7px 10px;
  color: var(--app-text);
  font-size: 13px;
  font-weight: 600;
}
#nomo-site .pg-folder-title .n-app-icon {
  width: 13px;
  height: 13px;
  color: var(--app-accent);
}
#nomo-site .pg-file-list {
  display: grid;
  gap: 3px;
}
#nomo-site .pg-window .pg-file {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 32px;
  width: 100%;
  padding: 5px 10px;
  text-align: left;
  color: var(--app-muted);
  border-radius: 0;
}
#nomo-site .pg-file .n-app-icon {
  width: 13px;
  height: 13px;
}
#nomo-site .pg-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#nomo-site .pg-window .pg-file[aria-pressed='true'] {
  color: var(--app-accent-strong);
  box-shadow: inset 2px 0 var(--app-accent);
  background: transparent;
}
#nomo-site .pg-window button:not(:disabled):hover {
  color: var(--app-accent-strong);
  background: var(--app-active);
}
#nomo-site .pg-window .pg-icon-button[aria-pressed='true'],
#nomo-site .pg-window .pg-outline-toggle[aria-expanded='true'],
#nomo-site .pg-window .pg-outline-item[aria-current='true'] {
  color: var(--app-accent-strong);
  background: var(--app-active);
}
#nomo-site .pg-workspace {
  min-width: 0;
}
#nomo-site .pg-tabs {
  display: flex;
  align-items: end;
  gap: 7px;
  min-height: 32px;
  padding-left: 16px;
}
#nomo-site .pg-document-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  max-width: calc(100% - 44px);
  padding: 5px 12px;
  border: 1px solid var(--app-border);
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: var(--app-paper);
  font-size: 13px;
  box-shadow: 0 -2px 7px #1c29300a;
}
#nomo-site [data-pg-filename] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
#nomo-site .pg-document-tab .n-app-icon {
  width: 13px;
  height: 13px;
  color: var(--app-accent);
}
#nomo-site .pg-tab-close .n-app-icon {
  width: 12px;
  height: 12px;
}
#nomo-site .pg-tab-add {
  display: grid;
  place-items: center;
  height: 31px;
  width: 28px;
  color: var(--app-muted);
}
#nomo-site .pg-toolbar {
  min-height: 40px;
}
#nomo-site .pg-toolbar .pg-mode-switch {
  margin-left: auto;
}
#nomo-site .pg-toolbar .n-content-width + .pg-mode-switch {
  margin-left: 0;
}
#nomo-site .pg-toolbar .n-content-width {
  margin-left: auto;
}
#nomo-site .pg-format-decoration {
  opacity: 0.65;
}
#nomo-site .pg-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 176px;
  background: var(--app-paper);
}
#nomo-site [data-outline-open='false'] .pg-body {
  grid-template-columns: minmax(0, 1fr);
}
#nomo-site [data-outline-open='false'] .pg-outline {
  display: none;
}
#nomo-site .pg-document-scroll {
  height: 510px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--app-border) transparent;
  min-width: 0;
  outline-offset: -3px;
}
#nomo-site .pg-document-scroll:focus-visible {
  outline: 2px solid var(--app-accent);
}
#nomo-site .pg-document {
  padding: 32px clamp(28px, 5vw, 72px) 56px;
  max-width: 820px;
  margin-inline: auto;
  font-size: 15px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
#nomo-site .pg-document h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.4;
  font-weight: 700;
  color: var(--app-heading);
  margin-bottom: 14px;
}
#nomo-site .pg-document h4 {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 700;
  color: var(--app-heading);
  margin-bottom: 12px;
}
#nomo-site .pg-document-intro {
  color: var(--app-text);
}
#nomo-site .pg-document section {
  margin-top: 28px;
}
#nomo-site .pg-document p + p {
  margin-top: 10px;
}
#nomo-site .pg-document ul {
  margin: 10px 0;
  padding-left: 22px;
}
#nomo-site .pg-document .pg-tasks {
  list-style: none;
  padding: 0;
}
#nomo-site .pg-tasks label {
  display: flex;
  align-items: start;
  gap: 10px;
  min-height: 36px;
  padding: 5px 0;
}
#nomo-site .pg-ready .pg-tasks label {
  cursor: pointer;
}
#nomo-site .pg-tasks input {
  accent-color: var(--app-accent);
  width: 16px;
  height: 16px;
  margin: 6px 0 0;
  flex-shrink: 0;
}
#nomo-site .pg-tasks input:checked + span {
  text-decoration: line-through;
  color: var(--app-muted);
}
#nomo-site .pg-document table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13px;
}
#nomo-site .pg-document th,
#nomo-site .pg-document td {
  border: 1px solid var(--app-border);
  padding: 9px 12px;
  text-align: left;
}
#nomo-site .pg-document th {
  background: var(--app-table-head);
  font-weight: 600;
}
#nomo-site .pg-document blockquote {
  border-left: 3px solid var(--app-accent);
  padding: 8px 16px;
  margin: 14px 0;
  background: var(--app-active);
}
#nomo-site .pg-outline {
  align-self: start;
  min-width: 0;
  margin: 36px 14px 24px 0;
  padding: 12px 8px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  box-shadow: 0 1px 4px #16202c09;
  max-height: 430px;
  overflow-y: auto;
  scrollbar-width: thin;
}
#nomo-site .pg-outline-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--app-heading);
  margin: 0 6px 10px;
}
#nomo-site .pg-window .pg-outline-item {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 6px 7px;
  border-radius: 3px;
  text-align: left;
  font-size: 12px;
  color: var(--app-muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#nomo-site .pg-outline-item + .pg-outline-item {
  margin-top: 3px;
}
#nomo-site [data-playground]:not(.pg-ready) .pg-outline {
  display: none;
}
#nomo-site [data-playground]:not(.pg-ready) .pg-body {
  grid-template-columns: minmax(0, 1fr);
}
#nomo-site .pg-ready .pg-sidebar,
#nomo-site .pg-ready .pg-outline {
  animation: pg-panel-in 160ms ease-out;
}
@keyframes pg-panel-in {
  from {
    opacity: 0;
    transform: translateX(-4px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
#nomo-site .pg-source {
  margin: 0;
  padding: 32px;
  min-height: 100%;
  color: var(--app-text);
  background: var(--app-paper);
  font:
    13px / 1.9 Consolas,
    'SFMono-Regular',
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
#nomo-site .pg-statusbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 32px;
  padding: 5px 12px;
  background: var(--app-rail);
  color: var(--app-muted);
  font-size: 11px;
}
#nomo-site .pg-zoom {
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--app-paper);
  color: var(--app-text);
  box-shadow: 0 1px 4px #16202c12;
}
#nomo-site .pg-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  color: var(--n-muted);
  font-size: 12px;
}
#nomo-site .pg-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  flex-shrink: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #bad4cd;
  font: inherit;
}
#nomo-site .pg-reset .n-app-icon {
  height: 14px;
  width: 14px;
}
#nomo-site .pg-reset:hover {
  background: #79b6a51a;
}
#nomo-site .pg-reset:focus-visible {
  outline: 2px solid var(--n-rim);
  outline-offset: -2px;
}
#nomo-site .pg-live {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (max-width: 1100px) {
  #nomo-site .pg-layout {
    grid-template-columns: 175px minmax(0, 1fr);
  }
  #nomo-site .pg-toolbar .pg-mode-switch,
  #nomo-site .pg-toolbar .n-content-width + .pg-mode-switch {
    margin-left: auto;
  }
  #nomo-site .pg-document {
    padding-inline: 32px;
  }
}
@media (max-width: 800px) {
  #nomo-site .pg-heading {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }
  #nomo-site .pg-demo-note {
    text-align: left;
  }
  #nomo-site .pg-body {
    grid-template-columns: minmax(0, 1fr) 148px;
  }
  #nomo-site .pg-titlebar .n-titlebar-menu {
    gap: 10px;
  }
}
@media (max-width: 760px) {
  #nomo-site .pg-layout,
  #nomo-site .pg-body {
    display: flex;
    flex-direction: column;
  }
  #nomo-site .pg-sidebar {
    padding: 10px 12px;
  }
  #nomo-site .pg-outline {
    order: -1;
    max-height: 170px;
    width: auto;
    margin: 12px 14px 0;
  }
  #nomo-site [data-playground]:not(.pg-ready) .pg-sidebar {
    display: none;
  }
  #nomo-site .pg-titlebar .n-titlebar-menu {
    display: none;
  }
  #nomo-site .pg-caption-decoration {
    display: none;
  }
  #nomo-site .pg-document-scroll {
    height: 460px;
  }
  #nomo-site .pg-document {
    padding: 26px 24px 40px;
    font-size: 16px;
  }
  #nomo-site .pg-window .pg-icon-button {
    height: 44px;
    width: 44px;
  }
  #nomo-site .pg-window .pg-file,
  #nomo-site .pg-window .pg-outline-item,
  #nomo-site .pg-tasks label {
    min-height: 44px;
  }
  #nomo-site .pg-titlebar {
    min-height: 44px;
    gap: 4px;
  }
  #nomo-site .pg-toolbar .pg-mode-switch .pg-format-decoration {
    display: none;
  }
  #nomo-site .pg-toolbar {
    gap: 5px;
    padding: 4px 8px;
  }
  #nomo-site .pg-toolbar .n-toolbar-core {
    gap: 0;
  }
  #nomo-site .pg-toolbar .n-toolbar-extra {
    display: none;
  }
}
@media (max-width: 560px) {
  #nomo-site .nv-playground {
    padding-bottom: 56px;
  }
  #nomo-site .pg-heading {
    margin-bottom: 28px;
    padding-top: 24px;
  }
  #nomo-site .pg-document table {
    font-size: 12px;
  }
  #nomo-site .pg-document th,
  #nomo-site .pg-document td {
    padding: 8px;
  }
  #nomo-site .pg-source {
    padding: 24px;
  }
  #nomo-site .pg-caption {
    align-items: start;
  }
}
@media (pointer: coarse) {
  #nomo-site .pg-window .pg-icon-button {
    width: 44px;
    height: 44px;
  }
  #nomo-site .pg-window .pg-file,
  #nomo-site .pg-window .pg-outline-item,
  #nomo-site .pg-tasks label {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #nomo-site .pg-window button {
    transition: none;
  }
  #nomo-site .pg-ready .pg-sidebar,
  #nomo-site .pg-ready .pg-outline {
    animation: none;
  }
}
