/* topbar-fixedpos.css — fixed closed height independent of panels-top */
:root{
  --tb-pad: 6px;
  --tb-open-height: 200px;
  --tb-closed-height: 56px;   /* stable closed height for all books */
}

/* Closed: fixed height (does not depend on --panels-top) */
.topbar .topbar-inner{
  height: var(--tb-closed-height) !important;
  display: flex !important;
  align-items: flex-start !important;      /* anchor to top */
  padding-top: var(--tb-pad) !important;
  padding-bottom: var(--tb-pad) !important;
}

/* Open: keep top fixed; add extra only to bottom */
.topbar.is-open .topbar-inner{
  height: var(--tb-open-height) !important;
  padding-top: var(--tb-pad) !important;
  padding-bottom: 0 !important;
}
