* { box-sizing: border-box; }

section[id] { scroll-margin-top: 110px; }

.skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #111;
  border-radius: 6px;
  z-index: 10;
}

/* Sidebar sticky behavior in docs layout */
@media (min-width: 992px) {
  [aria-label] .card {
    position: sticky;
    top: 1.5rem;
  }
}

/* Make nav-pills feel like dashboard sidebar */
.nav-pills .nav-link { border-radius: .5rem; }

/* Ensure code blocks match dark theme nicely */
pre.code { margin-bottom: 0; }

/* Language switch (header) */
.lang-switch .btn { min-width: 44px; }

/* Header brand logo */
.navbar .navbar-brand-img {
  height: 28px;
  width: auto;
}

/* RTL support for Arabic */
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .navbar .container-fluid { flex-direction: row-reverse; }
html[dir="rtl"] .navbar-text { margin-left: 0 !important; margin-right: 1rem !important; }
html[dir="rtl"] .nav { text-align: right; }
html[dir="rtl"] .ml-auto { margin-left: 0 !important; margin-right: auto !important; }
