.mley-reader-panel{position:fixed;top:var(--mley-reader-top,70px);right:0;bottom:0;width:50%;display:flex;flex-direction:column;z-index:1040;background:var(--bs-body-bg,#fff);color:var(--bs-body-color,#202124);border-left:1px solid #aeb5be}
.mley-reader-panel[hidden],.mley-reader-panel [hidden]{display:none!important}
.mley-reader-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #ccd0d5;flex-shrink:0}
.mley-reader-heading h2{flex:1 1 200px;font-size:15px;margin:0;overflow-wrap:anywhere;line-height:1.4}
.mley-reader-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.mley-reader-control{display:inline-flex;align-items:center;justify-content:center;min-height:36px;min-width:36px;border:1px solid #b7bec7;border-radius:6px;padding:5px 8px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer;text-decoration:none}
.mley-reader-control:focus-visible{outline:3px solid #007aff;outline-offset:2px}
.mley-reader-frames,.mley-reader-frame{flex:1;min-height:0;position:relative;display:flex;flex-direction:column}
.mley-reader-frame iframe{flex:1;min-height:0;width:100%;border:0;background:white}
.mley-reader-status:empty{display:none}.mley-reader-status,.mley-reader-error{margin:0;padding:12px;font-size:14px}
body.mley-reader-open .mley-reader-main .ley-content-shell{width:100%!important;max-width:100%!important;min-width:0}
/* The home shell normally uses viewport units. Inside a split reader its
   available width is the left pane, not the browser window. */
body.mley-reader-open .mley-reader-main .home-content-shell{width:100%!important;max-width:100%!important;min-width:0;margin:0!important;padding:12px!important}
body.mley-reader-open #mley-oaj-search-card{min-width:0;max-width:100%;margin:0;container-type:inline-size;container-name:mley-search-results}
body.mley-reader-open #mley-oaj-search-card>.card-body{min-width:0;padding:12px}
body.mley-reader-open #mley-oaj-search-card .mley-oaj-results-list{grid-template-columns:minmax(0,1fr)}
body.mley-reader-open #mley-oaj-search-card .list-group-item{min-width:0;overflow-wrap:anywhere}
body.mley-reader-open #mley-oaj-search-card .mley-cjf-input-row,body.mley-reader-open #mley-oaj-search-card .mley-cjf-pagination{flex-wrap:wrap}
body.mley-reader-open #mley-oaj-search-card .mley-cjf-input-row input{flex-basis:180px}
body.mley-reader-open #mley-oaj-search-card .btn{max-width:100%;white-space:normal}
body.mley-reader-open #mley-oaj-search-card .mley-oaj-result-chips span{max-width:100%;white-space:normal;padding-block:.3rem}
@container mley-search-results (max-width:600px){
  #mley-oaj-search-card .mley-oaj-source-banner,#mley-oaj-search-card .mley-oaj-results-summary,#mley-oaj-search-card .mley-oaj-result-top,#mley-oaj-search-card .mley-oaj-result-footer{flex-direction:column;align-items:stretch}
  #mley-oaj-search-card .mley-oaj-source-banner__link{width:100%;max-width:100%}
}
@media(max-width:767px){.mley-reader-panel{width:100%}.mley-reader-heading{padding:8px}.mley-reader-control{min-height:40px}body.mley-reader-open .mley-reader-main{visibility:hidden}}
html[data-theme=dark] .mley-reader-panel{background:#171b22;color:#e6e9ee}
html[data-theme=dark] .mley-reader-heading{border-color:#3a4a5e}
html[data-theme=dark] .mley-reader-control{border-color:#71859c;color:#e6e9ee}
html[data-theme=dark] .mley-reader-control:hover{background:#304257}
html[data-theme=dark] :is(.mley-reader-frame iframe,#mley-pdf-frame){background:#111a24}
#mley-pdf-panel #mley-pdf-save{width:auto;min-width:58px;padding:0 7px;font-size:12px}
#mley-pdf-panel #mley-pdf-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap!important;border:0!important}
@container mley-pdf (max-width:700px){#mley-pdf-panel.mley-pdf-panel--linked{grid-template-columns:minmax(0,1fr) auto auto 0 auto auto}#mley-pdf-panel .mley-pdf-official{display:none}}
/* Home and OAJ share one navigation, also while reading a judgment. */
body.mley-shared-sidebar-page.mley-reader-open #sidebar{display:block!important}
.mley-recent-judgments{margin-top:16px;padding-top:14px;border-top:1px solid var(--border-color)}
.mley-recent-judgments .mley-home-recent-item:focus-visible,.mley-recent-judgments button:focus-visible{outline:2px solid var(--accent-color);outline-offset:2px}
.mley-recent-judgments .mley-home-recent-name{font-size:11px;color:var(--text-muted)}
@media(min-width:1081px){
  body.mley-shared-sidebar-page:not(.mley-oaj-page) .mley-reader-panel{width:calc((100% - 220px) / 2)}
}

/* Native law PDFs and documents restored on another page use one layout. */
body.mley-pdf-layout-active:not(.mley-pdf-layout-full) :is(#panel, .mley-reader-main) {
  position:relative!important; left:auto!important; right:auto!important; top:auto!important; bottom:auto!important;
  width:auto!important; max-width:none!important; min-width:0!important; height:auto!important; min-height:0!important;
  margin-right:var(--mley-pdf-layout-width)!important; transform:none!important; visibility:visible!important;
}
body.mley-pdf-layout-active :is(#panel, .mley-reader-main) :is(#contain_id.ley-content-shell, .ley-content-shell, .home-content-shell) {
  width:100%!important; max-width:100%!important; min-width:0; margin-inline:0!important; box-sizing:border-box;
}
/* Search results keep their own scroll area below the search header. */
body.mley-oaj-page.mley-pdf-layout-active:not(.mley-pdf-layout-full) #panel {
  position:fixed!important; top:var(--mley-pdf-header)!important;
  left:var(--cjf-workspace-left,0px)!important; right:var(--mley-pdf-layout-width)!important;
  bottom:var(--mley-pdf-layout-bottom,0px)!important; margin:0!important; overflow:auto!important;
}
body.mley-pdf-layout-active #cjf-workspace-divider { display:none!important; }
body.mley-shared-sidebar-page:not(.mley-oaj-page).mley-pdf-layout-active:not(.mley-pdf-layout-full) #panel {
  padding-top:var(--mley-pdf-header)!important;
}
body.mley-pdf-layout-full { overflow:hidden; }
body.mley-pdf-layout-full :is(#panel, .mley-reader-main) { visibility:hidden!important; }
body.mley-pdf-layout-active [data-pdf-reader-layout], body.mley-pdf-layout-active .mley-pdf-layout-splitter {
  bottom:var(--mley-pdf-layout-bottom, 0px)!important;
}
.mley-pdf-layout-splitter { position:fixed; width:14px; z-index:1041; cursor:col-resize; touch-action:none; user-select:none; }
.mley-pdf-layout-splitter[hidden] { display:none!important; }
.mley-pdf-layout-splitter::before { content:""; position:absolute; inset:0 auto 0 6px; width:2px; background:var(--border-color,#b7bec7); }
.mley-pdf-layout-splitter::after { content:""; position:absolute; top:calc(50% - 24px); left:4px; width:6px; height:48px; border-radius:8px; background:var(--text-muted,#718096); box-shadow:0 0 0 3px var(--bg-surface,#fff); }
.mley-pdf-layout-splitter:hover::after, .mley-pdf-layout-splitter:focus-visible::after { background:var(--accent-color,#356ca5); }
.mley-pdf-layout-splitter:focus-visible { outline:2px solid var(--accent-color,#356ca5); outline-offset:-2px; }
body.mley-pdf-resizing, body.mley-pdf-resizing * { cursor:col-resize!important; user-select:none!important; }
body.mley-pdf-resizing iframe { pointer-events:none; }
@media print {
  [data-pdf-reader-layout], .mley-pdf-layout-splitter { display:none!important; }
  body.mley-pdf-layout-active :is(#panel, .mley-reader-main) { visibility:visible!important; margin-right:0!important; }
}
