/* Mobile-only presentation. Desktop keeps the original grid and controls. */
.cm-advanced,.cm-facet-options{display:contents}
.ccbe-documents .cm-filter-toggle,.ccbe-publications .cm-filter-toggle,.ccbe-documents .cm-facet-toggle{display:none}
@media(max-width:767px){
 .ccbe-documents .cd-layout{grid-template-columns:minmax(0,1fr);gap:20px}
 .ccbe-documents{padding:20px 12px 32px}
 .ccbe-documents .cd-filters{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid #dce2ec;border-radius:10px;background:#f8f9fc}
 .ccbe-documents .cd-filters h2,.ccbe-documents .cd-keyword,.ccbe-documents .cd-dates,.ccbe-documents .cd-filters fieldset{margin:0}
 .ccbe-publications .cp-form{padding:16px}
 .ccbe-publications .cp-fields{display:flex;flex-direction:column;gap:12px}
 .ccbe-documents .cm-filter-toggle,.ccbe-publications .cm-filter-toggle,.ccbe-documents .cm-facet-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:12px;text-align:left;font-size:15px;font-weight:600;margin:0;background:white;color:#18478b;border:1px solid #bfcadd;border-radius:6px}
 .cm-filter-toggle::after,.cm-facet-toggle::after{content:'+';font-size:22px;line-height:1;flex-shrink:0}
 .cm-filter-toggle[aria-expanded=true]::after,.cm-facet-toggle[aria-expanded=true]::after{content:'−'}
 .ccbe-documents .cm-advanced,.ccbe-publications .cm-advanced{display:none}
 .ccbe-documents .cm-filters-open .cm-advanced,.ccbe-publications .cm-filters-open .cm-advanced{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;padding-top:4px}
 .ccbe-documents .cm-legend-desktop{display:none}
 .ccbe-documents .cd-filters legend{width:100%;margin:0}
 .ccbe-documents .cm-facet-options{display:none}
 .ccbe-documents .cm-facet-open .cm-facet-options{display:block;margin-top:8px}
 .ccbe-documents .cd-options,.ccbe-publications .cp-options{position:static;width:100%;max-height:240px;max-height:min(240px,45dvh);overflow:auto;overscroll-behavior:contain;box-shadow:none}
 .ccbe-documents .cd-filters .cd-check,.ccbe-publications .cp-options label{min-height:48px;padding:12px 8px;font-size:15px;line-height:1.4;gap:12px;align-items:center}
 .ccbe-documents .cd-check input[type=checkbox],.ccbe-publications .cp-options input[type=checkbox]{width:20px;height:20px;flex:0 0 20px;margin:0;accent-color:#18478b}
 .ccbe-publications .cp-options span{min-width:0;overflow-wrap:anywhere}
 .ccbe-documents .cd-filters input[type=search],.ccbe-documents .cd-dates input[type=date],.ccbe-publications .cp-fields input:not([type=checkbox]),.ccbe-publications .cp-sort{font-size:16px!important;min-height:48px;max-width:100%;min-width:0}
 .ccbe-documents .cd-dates{grid-template-columns:minmax(0,1fr);gap:12px}
 .ccbe-publications .cp-fields summary{white-space:normal;overflow-wrap:anywhere;min-height:48px}
 .ccbe-documents .cd-filters>button{margin:0;min-height:48px}
 .ccbe-publications .cp-actions{gap:10px;margin-top:16px;padding-top:16px;flex-wrap:wrap}
 .ccbe-publications .cp-actions button{flex:1 1 130px;min-height:48px;font-size:15px}
 .ccbe-publications .cp-actions button[type=submit]{order:-1}
 .ccbe-publications .cp-toolbar{gap:12px;scroll-margin-top:20px}
 .ccbe-publications .cp-toolbar label{width:100%;min-width:0;flex-wrap:wrap}
 .ccbe-publications .cp-toolbar select{flex:1;min-width:0;max-width:100%}
 .ccbe-publications .cp-active{flex-basis:100%;min-width:0}
 .ccbe-publications .cp-active button{max-width:100%;white-space:normal;overflow-wrap:anywhere;min-height:44px}
 .ccbe-documents .cd-files a,.ccbe-documents .cd-more{display:inline-flex;align-items:center;min-height:44px}
 .ccbe-publications .cp-download,.ccbe-publications .cp-results summary,.ccbe-publications .cp-results details a{min-height:44px;padding:12px}
 .ccbe-publications .cp-pagination button,.ccbe-documents .cd-pagination button{min-height:44px;min-width:44px}
 .ccbe-documents .cd-pagination{flex-wrap:wrap;justify-content:center}
 .ccbe-documents .cd-results{scroll-margin-top:20px}
 .ccbe-publications :focus-visible,.ccbe-documents :focus-visible{outline:3px solid #ff914d;outline-offset:3px}
}
