/* Shared reading controls retain the institutional palette at a readable scale. */
body[data-route=read] .reader-toolbar .reader-tools button,
body[data-route=read] .reader-toolbar .reader-tools select{
 min-height:44px;font-size:12px;line-height:1.6;
}
body[data-route=read] .reader-toolbar .reader-tools label{font-size:12px}
body[data-route=read] .reader-toolbar .reader-tools button:focus-visible,
body[data-route=read] .reader-toolbar .reader-tools select:focus-visible{
 outline:2px solid #e6cf98;outline-offset:3px;
}
.filter-panel :is(input,select,button):focus-visible,
.results-heading :is(button,a):focus-visible,
.active-filters button:focus-visible{
 outline:2px solid #806b3d;outline-offset:3px;
}

@media(max-width:760px){
 body[data-route=read] .reader-toolbar>.shell{gap:10px}
 body[data-route=read] .reader-toolbar>.shell>a{font-size:12px;line-height:1.7;min-height:32px;display:flex;align-items:center}
 body[data-route=read] .reader-toolbar .reader-tools{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:8px;
 }
 body[data-route=read] .reader-toolbar .reader-tools label{display:none}
 body[data-route=read] .reader-toolbar .reader-tools button,
 body[data-route=read] .reader-toolbar .reader-tools select{
  width:100%;max-width:none;min-width:0;padding:9px 7px;white-space:normal;overflow-wrap:anywhere;
 }
 body[data-route=read] .reader-layout .reader-section{scroll-margin-top:260px}
 body.reader-focus[data-route=read] .reader-toolbar>.shell>a{display:none}
 body.reader-focus[data-route=read] .reader-layout .reader-section{scroll-margin-top:135px}

 .filter-panel{padding:20px;min-width:0}
 .filter-panel .filter-top{gap:18px}
 .filter-panel .field{min-width:0}
 .filter-panel .field label{font-size:12px;line-height:1.7;letter-spacing:.02em;text-transform:none;margin-bottom:8px}
 .filter-panel .field input,.filter-panel .field select{
  width:100%;max-width:100%;min-width:0;min-height:48px;font-size:16px;line-height:1.6;padding:11px 12px;
 }
 .filter-panel .field .input-wrap input{padding-inline:42px 12px}
 .filter-panel .field .input-wrap svg{left:auto;right:auto;inset-inline-start:14px;top:50%;transform:translateY(-50%)}
 .filter-panel .pills{gap:8px}
 .filter-panel .pill{min-height:44px;max-width:100%;font-size:13px;line-height:1.6;padding:9px 13px;white-space:normal;overflow-wrap:anywhere}
 .filter-panel .saved-toggle{min-height:44px;font-size:13px;line-height:1.7;white-space:normal;gap:10px;padding-block:8px}
 .filter-panel .saved-toggle input{width:20px;height:20px;flex:none}
 .active-filters{gap:8px}
 .active-filters button{min-height:44px;font-size:12px;line-height:1.7;max-width:100%;overflow-wrap:anywhere}
 .results-heading{font-size:13px;line-height:1.8}
 .results-heading #publication-count{font-size:13px;max-width:none;min-width:0}
 .results-heading .reset-button{font-size:13px;line-height:1.6;min-height:44px;min-width:44px;max-width:none;padding:8px 10px}
 .results-heading .view-switch button{width:44px;min-height:44px;flex:none}
 .library-shortcut{gap:8px 20px}
 .library-shortcut .text-link{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
 .publication-card .pub-actions{flex-wrap:wrap;gap:10px 16px;align-items:center}
 .publication-card .pub-actions :is(.text-link,.save-button,[data-action=compare-toggle]){min-height:44px;font-size:12px;line-height:1.7;display:inline-flex;align-items:center}
 .expert-card .text-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px;line-height:1.7}

 .site-header .mobile-nav .mobile-nav-grid a{font-size:14px;min-height:48px;overflow-wrap:anywhere}
 .site-header .mobile-nav .mobile-nav-footer{flex-wrap:wrap;gap:8px 22px}
 .site-header .mobile-nav .mobile-nav-footer a{font-size:13px;min-height:44px}

 body[data-route=read]:not(.reader-focus) #main{padding-bottom:128px}
 body[data-route=read] .reader-dock{
  display:grid;grid-template-columns:55px minmax(0,1fr) minmax(0,.8fr) 44px;gap:8px;align-items:center;
  padding:12px 12px calc(12px + env(safe-area-inset-bottom));
 }
 body[data-route=read] .reader-dock .reader-progress-control{min-width:0;width:100%;max-width:none}
 body[data-route=read] .reader-dock .reader-progress-control progress{width:100%;max-width:100%}
 body[data-route=read] .reader-dock .reader-progress-control span{font-size:12px}
 body[data-route=read] .reader-dock>button{
  min-width:0;min-height:44px;padding:8px 6px;font-size:12px;line-height:1.7;white-space:normal;overflow-wrap:anywhere;
 }
 body[data-route=read] .reader-dock>a{display:flex;justify-content:center;align-items:center;min-width:44px;min-height:44px;padding:5px;font-size:25px}
 body[data-route=read] .reader-dock :is(button,a):focus-visible{outline:2px solid #806b3d;outline-offset:2px}
 body.reader-focus[data-route=read] .reader-dock{display:none}
}

@media(max-width:480px){
 .filter-panel{padding:18px}
 .publications-discovery .results-heading{flex-direction:column;align-items:stretch;gap:12px}
 .publications-discovery .results-controls{width:100%;justify-content:space-between;gap:16px}
 .publications-discovery .results-controls .reset-button{text-align:end}
 body[data-route=read] .reader-dock{grid-template-columns:48px minmax(0,1fr) minmax(0,.8fr) 44px;gap:7px}
}

@media print{
 body[data-route=read]:not(.reader-focus) #main{padding-bottom:0}
 body[data-route=read] .reader-dock{display:none!important}
}
