/* Re-enable clicks where the static snapshot uses pointer-events-none on wrappers */
[data-j9-mobile-hero] .pointer-events-none.relative.z-10 {
  pointer-events: auto;
}

[data-j9-bar],
[data-j9-bar] button,
[data-j9-bar] [data-j9-segment],
[data-j9-mobile-book-widget] button,
[data-j9-mobile-header-book],
.j9-tabbar-pill,
.j9-tabbar-pill button,
.j9-tabbar-pill a {
  pointer-events: auto !important;
}

[data-j9-bar] {
  position: relative;
  z-index: 50;
}

[data-j9-bar] [data-j9-segment] {
  position: relative;
  z-index: 1;
}

[data-j9-bar] [data-j9-segment]:has(button[aria-expanded="true"]) {
  z-index: 60;
}

#j9-site-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}

#j9-site-menu[data-open="true"] {
  display: block;
}

#j9-site-menu .j9-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

#j9-site-menu .j9-menu-panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(320px, 88vw);
  background: #fff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  overflow-y: auto;
  padding: 1.25rem 1rem 2rem;
  font-family: "29LT Bukra", Bukra, Tahoma, sans-serif;
}

#j9-site-menu .j9-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: #001871;
  font-weight: 600;
}

#j9-site-menu .j9-menu-close {
  border: 0;
  background: #f7f7f7;
  border-radius: 999px;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

#j9-site-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#j9-site-menu a {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  color: #001871;
  text-decoration: none;
  font-size: 0.9375rem;
}

#j9-site-menu a:hover {
  background: #f3f5f9;
}

#j9-lite-dialog {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  place-items: center;
  padding: 1rem;
}

#j9-lite-dialog[data-open="true"] {
  display: grid;
}

#j9-lite-dialog .j9-lite-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

#j9-lite-dialog .j9-lite-dialog-card {
  position: relative;
  max-width: 22rem;
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  font-family: "29LT Bukra", Bukra, Tahoma, sans-serif;
  color: #001871;
}

#j9-lite-dialog h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

#j9-lite-dialog p {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #334155;
}

#j9-lite-dialog .j9-lite-dialog-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

#j9-lite-dialog button {
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
}

#j9-lite-dialog .j9-lite-dialog-primary {
  background: #ffcf00;
  color: #001871;
  font-weight: 600;
}

#j9-lite-dialog .j9-lite-dialog-ghost {
  background: #eef2f7;
  color: #001871;
}
