
:root {
  --github-header-height: 66px;
  --docs-sidebar-width: 240px;
  --docs-sidebar-gap: 24px;
  --docs-container-pad: 16px;
} 

body {
  padding-top: var(--github-header-height);
  background-color: #fff;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

html {
  scroll-padding-top: var(--github-header-height);
}
ul li{
  display: block;
}
.Header,
.github-header {
  --header-bgColor: #fff;
  --header-fgColor-default: #24292f;
  --header-fgColor-logo: #24292f;
  --headerSearch-bgColor: #ffffff;
  --headerSearch-borderColor: #d0d7de;
  background-color: #fff !important;
  color: #24292f;
}

.github-header .Header-input::placeholder {
  color: #57606a !important;
  opacity: 1 !important;
}

.Header .Header-input::placeholder {
  color: #57606a !important;
  opacity: 1 !important;
}

/* Header — tetap di atas saat scroll */
header.Header.github-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: block !important;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  border-bottom: 1px solid #d0d7de;
  box-shadow: 0 1px 3px rgba(31, 35, 40, 0.08);
}

.github-header > .container-xl {
  width: 100%;
  max-width: 1280px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

.github-header .header-main {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.github-header .header-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.github-header .header-logo-link img {
  width: 32px;
  height: 32px;
  border-radius:6px;
}

.github-header .header-logo-link .Header-link {
  font-size: 16px;
  font-weight: 600;
}

.github-header .header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 272px;
  max-width: min(272px, 100%);
}

.github-header .header-search-icon {
  position: absolute;
  left: 10px;
  z-index: 1;
  color: #57606a;
  pointer-events: none;
  flex-shrink: 0;
}

.github-header .Header-input {
  width: 100%;
  padding: 6px 12px 6px 32px;
  font-size: 13px;
  color: #24292f !important;
  background-color: #f6f8fa !important;
  border: 1px solid #d0d7de !important;
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(31, 35, 40, 0.04);
}

.github-header .Header-input:focus {
  background-color: #F6F8FA !important;
  outline: 2px solid #0969da;
  outline-offset: -1px;
}

.github-header .Header-input::placeholder {
  color: #57606a !important;
  opacity: 1 !important;
}

.github-header .header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.github-header .header-nav .Header-link {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-weight: 500;
  color: #24292f !important;
  border-radius: 6px;
}

.github-header .header-nav .Header-link:hover {
  color: #0969da !important;
  text-decoration: none;
  background-color: rgba(9, 105, 218, 0.08);
}

/* Layout dokumentasi — sidebar sticky hanya di area artikel (tidak menutupi subnav) */
#main-content,
.docs-layout {
  overflow: visible;
}

@media (min-width: 768px) {
  .docs-layout {
    display: grid;
    grid-template-columns: var(--docs-sidebar-width) minmax(0, 1fr);
    gap: var(--docs-sidebar-gap);
    align-items: start;
  }

  .docs-sidebar {
    position: sticky;
    top: calc(var(--github-header-height) + var(--docs-container-pad));
    align-self: start;
    max-height: calc(100vh - var(--github-header-height) - 32px);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .docs-sidebar::-webkit-scrollbar {
    display: none;
  }

  @supports (height: 100dvh) {
    .docs-sidebar {
      max-height: calc(100dvh - var(--github-header-height) - 32px);
    }
  }

  .docs-layout .docs-article {
    min-width: 0;
    max-width: 100%;
  }
}

.docs-article pre.mermaid {
  max-width: 100%;
  overflow-x: auto;
}

.docs-article .mermaid svg {
  max-width: 100%;
  height: auto;
}

/* Breadcrumb & judul repo */
.nx-page-header {
  padding-top: 20px;
}

.nx-repo-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

.nx-repo-title a {
  color: #0969da;
  text-decoration: none;
}

.nx-repo-title a:hover {
  text-decoration: underline;
}

.nx-repo-title .octicon {
  color: #57606a;
}

.nx-repo-title .nx-slash {
  color: #57606a;
  font-weight: 400;
}

/* Tab navigasi — gaya GitHub (garis bawah), bukan tombol biru */
.nx-repo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid #d0d7de;
}

.nx-repo-nav a {
  display: inline-block;
  padding: 8px 12px;
  margin-bottom: -1px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  color: #57606a;
  text-decoration: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
}

.nx-repo-nav a:hover {
  color: #24292f;
  border-bottom-color: #d0d7de;
  background: transparent;
}

.nx-repo-nav a[aria-current="page"] {
  color: #24292f;
  font-weight: 600;
  border-bottom-color: #fd8c73;
  background: transparent;
}

/* Hero / install — CTA unduhan gaya GitHub (Primer: border, canvas-muted, tombol hijau) */
.nx-doc-install,
.nx-doc-hero {
  margin: 0 0 24px;
  padding: 0;
}

.nx-doc-install .nx-doc-title,
.nx-doc-hero .nx-doc-title {
  margin: 0 0 16px;
  padding: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #24292f;
  border: 0;
}

.nx-cta-download-strip {
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background-color: #f6f8fa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.nx-cta-download-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 16px 20px;
}

.nx-cta-download-text {
  flex: 1 1 240px;
  min-width: 0;
}

.nx-cta-download-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #24292f;
}

.nx-cta-download-text span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #57606a;
}

.nx-cta-download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nx-cta-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 5px 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 6px;
  border: 1px solid rgba(27, 31, 36, 0.15);
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.04);
  transition:
    background-color 0.12s ease,
    border-color 0.12s ease,
    box-shadow 0.12s ease;
}

.nx-cta-download-btn:focus-visible {
  outline: 2px solid #0969da;
  outline-offset: 2px;
}

/* Tombol primer — hijau GitHub / Primer success */
.nx-cta-download-btn--windows,
.nx-cta-download-btn--linux {
  color: #fff;
  background-color: #2da44e;
  border-color: rgba(27, 31, 36, 0.15);
}

.nx-cta-download-btn--windows:hover,
.nx-cta-download-btn--linux:hover {
  color: #fff;
  background-color: #2c974b;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.1);
}

.nx-cta-download-btn--windows:active,
.nx-cta-download-btn--linux:active {
  background-color: #298e46;
  box-shadow: inset 0 0.15em 0.3em rgba(27, 31, 36, 0.15);
}

.nx-cta-download-btn i {
  font-size: 16px;
  opacity: 0.95;
}

@media (max-width: 544px) {
  .nx-doc-install .nx-doc-title,
  .nx-doc-hero .nx-doc-title {
    font-size: 26px;
  }

  .nx-cta-download-inner {
    padding: 14px 16px;
    flex-direction: column;
    align-items: stretch;
  }

  .nx-cta-download-actions {
    justify-content: stretch;
  }

  .nx-cta-download-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Nav footer dokumen (prev | indeks | next) — selaras Primer / GitHub */
.docs-article .nx-doc-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d0d7de;
  max-width: 100%;
  box-sizing: border-box;
}

.docs-article .nx-doc-nav a {
  font-size: 14px;
  font-weight: 600;
  color: #0969da;
  text-decoration: none;
}

.docs-article .nx-doc-nav a:hover {
  text-decoration: underline;
}

.docs-article .nx-doc-nav .nx-doc-prev {
  justify-self: start;
  grid-column: 1;
}

.docs-article .nx-doc-nav .nx-doc-index {
  justify-self: center;
  text-align: center;
  grid-column: 2;
  color: #57606a;
  font-weight: 500;
}

.docs-article .nx-doc-nav .nx-doc-index:hover {
  color: #0969da;
}

.docs-article .nx-doc-nav .nx-doc-next {
  justify-self: end;
  text-align: right;
  grid-column: 3;
}

@media (max-width: 544px) {
  .docs-article .nx-doc-nav {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .docs-article .nx-doc-nav .nx-doc-prev,
  .docs-article .nx-doc-nav .nx-doc-index,
  .docs-article .nx-doc-nav .nx-doc-next {
    grid-column: 1;
    justify-self: stretch;
    text-align: center;
  }
}

/* Catatan blok (dipakai modul + backend CLI) */
.docs-article .nx-readme-note {
  margin: 1rem 0 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #24292f;
  background-color: #ddf4ff;
  border: 1px solid #54aeff66;
  border-radius: 6px;
}

.docs-article .nx-readme-note strong {
  color: #24292f;
}

/* Alur baca — callout Primer (hanya di kolom utama, tidak mempengaruhi submenu col-3) */
.docs-article .col-9 .nx-doc-alur-callout {
  margin: 0 0 24px;
  padding: 14px 20px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background-color: #f6f8fa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.docs-article .col-9 .nx-doc-alur-label {
  margin: 0 0 8px;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #57606a;
}

.docs-article .col-9 .nx-doc-alur-path {
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
  color: #24292f;
}

.docs-article .col-9 .nx-doc-alur-path a {
  font-weight: 500;
  color: #0969da;
  text-decoration: none;
}

.docs-article .col-9 .nx-doc-alur-path a:hover {
  text-decoration: underline;
}

.docs-article .col-9 .nx-doc-alur-sep {
  margin: 0 6px;
  color: #8c959f;
  font-weight: 400;
}

.docs-article .col-9 .nx-doc-alur-current {
  font-weight: 600;
  color: #24292f;
}

.docs-article .col-9 .nx-doc-alur-desc {
  color: #57606a;
  font-weight: 400;
}

/* Submenu kanan — jangan timpa filter-list Primer */
.docs-article .col-3 .nx-doc-storages-menu {
  display: block;
}

.docs-article .col-3 .nx-doc-storages-menu > .filter-list,
.docs-article .col-3 .nx-doc-storages-menu nav.filter-list {
  display: block;
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.docs-article .col-3 .filter-list .filter-item {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Daftar topik Helper — ringkas gaya GitHub (kotak + baris) */
.docs-article .col-9 .nx-doc-topic-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.docs-article .col-9 .nx-doc-topic-list li {
  margin: 0;
  padding: 8px 16px;
  font-size: 14px;
  line-height: 1.45;
  border-bottom: 1px solid #d0d7de;
}

.docs-article .col-9 .nx-doc-topic-list li:last-child {
  border-bottom: 0;
}

.docs-article .col-9 .nx-doc-topic-list li:hover {
  background-color: #f6f8fa;
}

.docs-article .col-9 .nx-doc-topic-list a {
  font-weight: 600;
  color: #0969da;
  text-decoration: none;
}

.docs-article .col-9 .nx-doc-topic-list a:hover {
  text-decoration: underline;
}

.docs-article .col-9 .nx-doc-topic-desc {
  display: inline;
  margin-left: 0.35rem;
  font-size: 13px;
  font-weight: 400;
  color: #57606a;
}

.docs-article .col-9 .nx-doc-topic-desc::before {
  content: "— ";
  color: #8c959f;
}

@media (max-width: 544px) {
  .docs-article .col-9 .nx-doc-alur-callout {
    padding: 12px 16px;
  }

  .docs-article .col-9 .nx-doc-topic-desc {
    display: block;
    margin: 2px 0 0;
  }

  .docs-article .col-9 .nx-doc-topic-desc::before {
    content: none;
  }
}

/* Slideshow produk NxCode */
.nx-slideshow {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #0d1117;
  margin: 16px 0;
}

.nx-slideshow-track {
  display: flex;
  transition: transform 0.4s ease;
}

.nx-slideshow-slide {
  min-width: 100%;
  position: relative;
}

.nx-slideshow-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background: #0d1117;
}

.nx-slideshow-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 14px;
  font-size: 12px;
  color: #e6edf3;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  line-height: 1.4;
}

.nx-slideshow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #d0d7de;
  border-radius: 50%;
  cursor: pointer;
  color: #24292f;
  line-height: 1;
  user-select: none;
  transition: background 0.15s;
  padding: 0;
}

.nx-slideshow-btn .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
}

.nx-slideshow-btn:hover {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.nx-slideshow-btn--prev { left: 10px; }
.nx-slideshow-btn--next { right: 10px; }

.nx-slideshow-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
  background: #0d1117;
}

.nx-slideshow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #484f58;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  padding: 0;
}

.nx-slideshow-dot.active {
  background: #58a6ff;
}

@media (max-width: 544px) {
  .nx-slideshow-slide img {
    max-height: 240px;
  }
  .nx-slideshow-btn {
    width: 30px;
    height: 30px;
  }
  .nx-slideshow-btn .material-symbols-outlined {
    font-size: 18px;
  }
}


/* Footer */
.nx-footer {
  border-top: 1px solid #d0d7de;
  margin-top: 40px;
  padding: 24px 0 16px;
  color: #57606a;
  font-size: 13px;
}

.nx-footer-brand {
  font-weight: 600;
  color: #24292f;
  margin: 0 0 8px;
  font-size: 14px;
}

.nx-footer-meta {
  margin: 2px 0;
}

.nx-footer-meta a {
  color: #0969da;
  text-decoration: none;
}

.nx-footer-meta a:hover {
  text-decoration: underline;
}

/* Footer icon-teks spacing */
.footer .d-flex.flex-items-center {
  gap: 10px !important;
}

/* Footer brand: spasi antara icon dan nama */
.footer .d-flex.flex-items-center.gap-2 {
  gap: 10px !important;
}
