/* Bookademy alone: no promotional strip, compact mobile search and scroll CTA. */
.br-bookademy-shell{--br-webinar-bar-height:0px;--br-shell-top-offset:var(--br-admin-bar-height,0px)}
.br-bookademy-shell .br-product-promo{display:none}
.br-book-search,.br-book-membership{display:none}

@media(max-width:600px){
  .br-bookademy-shell .br-site-header{height:58px}
  .br-bookademy-shell .br-header-inner{width:calc(100% - 24px);grid-template-columns:40px minmax(0,1fr) 40px;gap:8px}
  .br-bookademy-shell .br-header-inner>.br-header-logo{display:none}
  .br-bookademy-shell .br-header-inner>.br-icon-button,
  .br-bookademy-shell .br-theme-toggle{width:40px;height:40px;border-radius:11px;box-shadow:none}
  .br-bookademy-shell .br-header-actions{gap:0}
  .br-bookademy-shell .br-book-search{grid-column:2;grid-row:1;display:flex;align-items:center;gap:0;min-width:0;height:40px;margin:0;border:1px solid var(--br-shell-border);border-radius:11px;background:#e8eff0;color:var(--br-shell-ink);overflow:hidden}
  .br-bookademy-shell .br-book-search:focus-within{outline:2px solid #b7893b;outline-offset:2px}
  .br-bookademy-shell .br-book-search button{width:36px;min-width:36px;height:40px;padding:0;display:grid;place-items:center;color:var(--br-shell-muted);border:0;background:transparent;cursor:pointer}
  .br-bookademy-shell .br-book-search input[type=search]{display:block;width:100%;min-width:0;height:100%;padding:0 0 0 8px;margin:0;border:0;outline:0;box-shadow:none;border-radius:0;background:transparent;color:var(--br-shell-ink);font:inherit;font-size:14px;line-height:1.5}
  .br-bookademy-shell .br-book-search input::placeholder{color:var(--br-shell-muted);opacity:1}
  html.dark .br-bookademy-shell .br-book-search{background:#0a3036}
}

/* Use the existing navigation's mobile breakpoint and clearance. Opacity keeps
   its measured footprint stable, so the support launcher never jumps over CTA. */
@media(max-width:899px){
  .br-bookademy-shell .br-book-membership{position:fixed;z-index:var(--br-z-bottom-nav,70);right:10px;left:10px;bottom:max(8px,env(safe-area-inset-bottom));height:70px;padding:8px;display:grid;align-items:center;box-sizing:border-box;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px);transition:opacity .18s ease,transform .18s ease,visibility 0s linear .18s}
  .br-bookademy-shell .br-book-membership a{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:52px;padding:0 16px;box-sizing:border-box;border:1px solid #efd7a3;border-radius:16px;background:linear-gradient(110deg,#f4dcac,#dfb463);box-shadow:0 8px 24px rgb(3 25 29 / 18%);color:#2f240d;font-family:"IRANSansX",sans-serif;font-size:15px;font-weight:800;line-height:1.6;text-decoration:none}
  .br-bookademy-shell .br-book-membership a>svg{flex-shrink:0}
  .br-bookademy-shell .br-book-membership a>svg:last-child{margin-inline-start:auto}
  .br-bookademy-shell .br-book-membership a>svg:first-child{margin-inline-end:auto}
  .br-bookademy-shell .br-book-membership a:focus-visible{outline:3px solid #0b5961;outline-offset:3px}
  html.dark .br-bookademy-shell .br-book-membership a:focus-visible{outline-color:#fff}
  .br-bookademy-shell.br-book-cta-active .br-bottom-nav{opacity:0;visibility:hidden;pointer-events:none;transform:none;transition:opacity .18s ease,visibility 0s linear .18s}
  .br-bookademy-shell.br-book-cta-active .br-book-membership{opacity:1;visibility:visible;pointer-events:auto;transform:none;transition-delay:0s}
  html:is(.br-keyboard-open,.br-drawer-open,.br-account-sheet-open,.bst-widget-open) .br-bookademy-shell .br-book-membership,
  .br-bookademy-shell.bd-menu-is-open .br-book-membership{opacity:0;visibility:hidden;pointer-events:none;transition:none}
}
@media(prefers-reduced-motion:reduce){
  .br-bookademy-shell .br-book-membership,
  .br-bookademy-shell.br-book-cta-active .br-bottom-nav{transition:none}
}
/* In Bookademy, discovery remains an action; the library is the current destination. */
.br-bookademy-shell #br-bottom-nav .br-bottom-discover{background:transparent;color:inherit;border-color:transparent;box-shadow:none;transform:none}
.br-bookademy-shell #br-bottom-nav a.is-active{background:#c8eedc;color:#143b31;border:1px solid #9dceb7;border-radius:16px;box-shadow:inset 0 1px #ffffff66}
