/* Desktop reader: fit-width page and controls above the scrolling document. */
@media(min-width:901px) {
  section.reader { position:fixed; inset:60px 0 0; width:100%; height:auto; display:flex; flex-direction:column; min-height:0; background:#f1f2f4; }
  .reader .read_book { display:flex; flex:1 1 auto; flex-direction:column; width:calc(100% - 32px); max-width:1280px; height:auto; min-height:0; margin:0 auto; padding:0; }
  .reader .read_text { flex:1 1 auto; box-sizing:border-box; width:100%; min-width:0; min-height:0; margin:0; padding:16px; overflow:auto; }
  .reader #pageContainer { width:100%; padding:0; }
  .reader #pageContainer > div { width:max-content; min-width:100%; }
  .reader .pdfViewer .page { margin:0 auto; box-shadow:0 1px 4px #0002; }
  .reader .read_sidebar,.reader .read_sidebar.open-b,.reader .read_sidebar.open-h { position:relative; order:-1; flex:0 0 auto; inset:auto; display:flex; flex-wrap:wrap; align-items:center; gap:8px; box-sizing:border-box; width:100%; height:auto; margin:0; padding:12px 16px; border:0; border-bottom:1px solid #ddd; background:#fff; z-index:5; transition:none; }
  .reader .sidebar_meta { position:static; flex:1 1 240px; min-width:0; width:auto; height:auto; overflow:hidden; }
  .reader .sidebar_title,.reader .sidebar_author { position:static; transform:none; -webkit-transform:none; margin:0; width:auto; white-space:normal; text-align:left; }
  .reader .sidebar_title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:16px; line-height:22px; color:#5a5028; }
  .reader .sidebar_author { font-size:13px; line-height:18px; color:#777; }
  .reader .contents,.reader .bookmark { position:static; }
  .reader .ebs_func { position:static; box-sizing:border-box; width:44px; height:44px; min-height:44px; margin:0; padding:0; background-size:28px; flex:0 0 44px; }
  .reader .sidebar_pagenav { position:static; display:flex; align-items:center; justify-content:flex-end; flex:0 0 auto; width:auto; gap:4px; }
  .reader .page_num { float:none; box-sizing:border-box; width:48px; height:44px; margin:0; padding:4px 0; font-size:16px; border:1px solid transparent; border-radius:3px; }
  .reader .page_num:first-child { border-color:#ccc; }
  .reader .pagenav_text { float:none; padding:0; font-size:14px; }
  .reader .sidebar_pagenav .ebs_func { background-size:22px; }
  .reader .sidebar_headline { display:none; }
  .reader .read_sidebar.open-c .contents .sidebar_headline,.reader .read_sidebar.open-b .bookmark .sidebar_headline { display:block; position:absolute; top:100%; left:0; width:min(600px,100%); height:auto; max-height:60vh; box-sizing:border-box; padding:20px; opacity:1; overflow:auto; color:#555; background:#fff; box-shadow:0 4px 8px #0002; transition:none; }
  .reader .sidebar_headline .headline_title { margin:0 0 12px; }
  .reader .sidebar_headline .ebs_input { box-sizing:border-box; max-width:100%; }
  .reader .reader-version-notice { position:static; flex:0 0 auto; margin:0 auto; box-sizing:border-box; width:calc(100% - 32px); max-width:1280px; }
  .reader-version-notice + .read_book .read_text,.reader-version-notice + .read_book .read_sidebar { margin-top:0; }
}
