/* Trang chủ / → /docs/intro (script trong index.html) */

/* ========== FOOTER: một hàng, không cột cũ ========== */
footer.footer .footer__links.row > .footer__col ~ .footer__col {
  display: none !important;
}

footer.footer .footer__links.row {
  justify-content: center !important;
  margin-bottom: 0 !important;
}

footer.footer .footer__links.row > .footer__col {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.75rem 1.5rem !important;
  width: 100% !important;
  max-width: 100% !important;
}

footer.footer .footer__col > .footer__title,
footer.footer .gyxen-footer-label,
footer.footer .footer__item.gyxen-footer-label {
  display: none !important;
}

footer.footer .footer__items.clean-list {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.75rem 1.5rem !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

footer.footer .footer__item {
  margin: 0 !important;
}

footer.footer .footer__link-item svg {
  display: none !important;
}

footer.footer .footer__link-item {
  white-space: nowrap;
}

/* ========== NAVBAR: chỉ logo ngang, không chữ gyxen ========== */
.navbar__title,
.navbar__brand b,
.navbar__brand .navbar__title,
a.navbar__brand > :not(.navbar__logo) {
  display: none !important;
}

/* Chỉ hiện logo ngang — ẩn bản vuông/cũ (kể cả sau React hydrate) */
.navbar__logo img[src*="gyxen-logo.svg"]:not([src*="horizontal"]),
.navbar__logo img[src*="gyxen-logo-dark"],
.navbar__logo img[src*="gyxen-navbar-logo"],
.navbar__logo img[src="/img/logo.svg"],
.navbar__logo img[class*="themedComponent--dark"] {
  display: none !important;
}

.navbar__logo img[src*="gyxen-logo-horizontal"] {
  display: inline-block !important;
  height: 2rem !important;
  width: auto !important;
  max-height: 2.25rem !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Nếu React tạo 2 img light/dark: chỉ giữ 1 ảnh hiển thị */
.navbar__logo picture,
.navbar__logo .themedComponent--dark {
  display: none !important;
}

/* Ẩn link navbar trùng (gyxen cũ) */
.navbar__item.navbar__link[href="/docs/intro"]:not(.navbar__link--active) + .navbar__item.navbar__link[href="/docs/intro"],
.navbar__items .navbar__link[href="/"]:not(.navbar__brand) {
  display: none !important;
}

.navbar a[href="/blog"],
.navbar a[href^="/blog/"],
.navbar a[href*="github.com"]:not([href*="gyxen.com"]),
a.navbar__item[href*="/blog"],
a.navbar__item[href*="github.com"],
.header-github-link {
  display: none !important;
}

/* ========== SIDEBAR: ẩn menu Docusaurus tutorial cũ ========== */
.theme-doc-sidebar-menu .menu__list-item:has(a[href*="/docs/category/tutorial---"]),
.theme-doc-sidebar-menu .menu__list-item:has(a[href="/docs/intro"] span[title="Tutorial Intro"]) {
  display: none !important;
}

.docs-doc-id-intro[data-has-hydrated="false"] .theme-doc-markdown,
.docs-doc-id-intro[data-has-hydrated="false"] .tableOfContents_bqdL,
.docs-doc-id-intro[data-has-hydrated="false"] .tocCollapsible_ETCw,
.docs-doc-id-intro[data-has-hydrated="false"] .pagination-nav {
  visibility: hidden !important;
}

/* Ẩn logo cũ trong blog / author */
img[src*="gyxen-navbar-logo"],
img[src*="gyxen-logo-dark"],
img[src="/img/logo.svg"],
.authorImage_XqGP[src*="github.com"],
img.avatar__photo[src*="github.com"] {
  display: none !important;
}

a.theme-edit-this-page,
a[href*="github.com/facebook/docusaurus"] {
  display: none !important;
}

.theme-doc-sidebar-container .menu__link {
  font-weight: 500;
}

.theme-doc-sidebar-container .menu__link--sublist {
  font-weight: 600;
}
