/* ===== GTAV tutorial site overrides ===== */
[hidden]{display:none!important}

/* ===== GTAV tutorial site overrides (on top of the bundled theme) ===== */

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--ifm-navbar-height) + 16px);
}

.site-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}

.navbar__logo {
  height: auto;
  margin-right: 8px;
}

.navbar__brand:hover .site-logo {
  transform: translateY(-1px);
}

.site-logo {
  transition: transform .18s ease;
}

/* ---- sidebar tree ---- */
.menu__list-item--collapsed > .menu__list {
  display: none;
}

.theme-doc-sidebar-menu .menu__caret {
  flex: 0 0 auto;
}

.theme-doc-sidebar-menu > .menu__list-item > .menu__list > .menu__list-item {
  margin-top: 1px;
}

/* menu card icons: fixed box so slow-loading originals never collapse */
.official-card img{width:30px;height:30px;flex:0 0 auto;object-fit:cover;border-radius:7px}

/* theme toggle */
.site-theme-toggle{margin:0 8px;display:flex;align-items:center}
.site-theme-toggle button{width:34px;height:34px;border:1px solid var(--ys-border,#e5e8ef);border-radius:9px;background:transparent;color:var(--ys-text-secondary,#667085);display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
.site-theme-toggle button:hover{background:var(--ys-fill,#f2f4f8);color:var(--ifm-font-color-base)}
.site-theme-toggle svg{width:18px;height:18px}
html[data-theme=dark] .site-theme-toggle .sun{display:none}
html[data-theme=light] .site-theme-toggle .moon{display:none}

/* ---- layout ---- */
.docItemWrapper {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
}

.docSidebarContainer_YfHR {
  flex: 0 0 var(--doc-sidebar-width);
}

.mainWrapper_z2l0 {
  padding-top: 0;
}

#__docusaurus {
  padding-top: var(--ifm-navbar-height);
}

.container.padding-top--md {
  padding-top: 1.6rem;
}

/* ---- page footer / pagination ---- */
.pagination-nav {
  display: flex;
  gap: 12px;
  margin-top: 2.2rem;
}

.pagination-nav__link {
  flex: 1 1 0;
}

.site-footer {
  border-top: 1px solid var(--ys-border, #e5e8ef);
  margin-top: 2.4rem;
  padding: 26px 0 34px;
  color: var(--ys-text-secondary, #667085);
  font-size: .82rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

/* ---- search modal ---- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 10vh;
}

.search-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 30, .46);
  backdrop-filter: blur(2px);
}

.search-panel {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  max-height: 72vh;
  display: flex;
  flex-direction: column;
  background: var(--ifm-background-surface-color, #fff);
  border: 1px solid var(--ys-border, #e5e8ef);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
  overflow: hidden;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ys-border, #e5e8ef);
}

.search-box .search-icon {
  width: 18px;
  height: 18px;
  color: var(--ys-text-secondary, #667085);
  flex: 0 0 auto;
}

#searchInput {
  flex: 1 1 auto;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 1rem;
  color: inherit;
}

.search-esc {
  border: 1px solid var(--ys-border, #e5e8ef);
  background: transparent;
  border-radius: 6px;
  font-size: .7rem;
  padding: 2px 7px;
  color: var(--ys-text-secondary, #667085);
  cursor: pointer;
}

.search-results {
  overflow: auto;
  padding: 8px;
}

.search-hit {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  text-decoration: none;
  color: inherit;
}

.search-hit:hover,
.search-hit.is-active {
  background: var(--ys-fill, #f2f4f8);
}

.search-hit b {
  font-weight: 600;
}

.search-hit span {
  display: block;
  font-size: .76rem;
  color: var(--ys-text-secondary, #667085);
  margin-top: 2px;
}

.search-empty {
  padding: 22px;
  text-align: center;
  color: var(--ys-text-secondary, #667085);
  font-size: .86rem;
}

/* ---- lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1002;
  background: rgba(8, 11, 18, .9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 22px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.theme-doc-markdown img.img_ev3q {
  cursor: zoom-in;
}

/* ---- code copy button ---- */
.theme-code-block {
  position: relative;
}

.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 9px;
  font-size: .72rem;
  border-radius: 6px;
  border: 1px solid var(--ys-border, #e5e8ef);
  background: rgba(255, 255, 255, .88);
  color: #45506a;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s;
}

.theme-code-block:hover .code-copy-btn,
.code-copy-btn:focus {
  opacity: 1;
}

html[data-theme=dark] .code-copy-btn {
  background: rgba(30, 34, 42, .9);
  color: #c8d2e0;
  border-color: #333a46;
}

.code-copy-btn.is-done {
  color: #1f8a5b;
  border-color: #9fd5bd;
}

/* ---- toc ---- */
.table-of-contents .toc-level-3 a {
  padding-left: 22px;
  font-size: .74rem;
}

.table-of-contents__link--active {
  color: var(--ifm-color-primary);
  font-weight: 600;
}

/* ---- index / directory ---- */
.official-empty {
  margin: 20px 0 0;
  color: var(--ys-text-secondary, #667085);
  font-size: .88rem;
}

.official-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.official-card {
  min-height: 92px;
}

/* ---- mobile ---- */
@media (max-width: 996px) {
  .theme-doc-sidebar-container {
    display: block !important;
    position: fixed;
    top: var(--ifm-navbar-height);
    left: 0;
    bottom: 0;
    z-index: 1001;
    width: 280px;
    max-width: 84vw;
    background: var(--ifm-background-surface-color, #fff);
    border-right: 1px solid var(--ys-border, #e5e8ef);
    box-shadow: 14px 0 40px rgba(15, 23, 42, .14);
    transform: translateX(-102%);
    transition: transform .22s ease;
  }

  body.sidebar-open .theme-doc-sidebar-container {
    transform: translateX(0);
  }

  body.sidebar-open::after {
    content: "";
    position: fixed;
    inset: var(--ifm-navbar-height) 0 0 0;
    background: rgba(12, 18, 30, .38);
    z-index: 1000;
  }

  .sidebar_njMd {
    padding-top: 10px;
    height: 100%;
  }

  .sidebarViewport_aRkj {
    max-height: none;
    height: 100%;
    overflow: auto;
  }

  .docMainContainer_TBSr {
    max-width: 100%;
  }

  .official-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rail_pjad {
    display: none;
  }
}

@media (max-width: 760px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }
}
