/* Search workspace: scoped to this page, including its shared PDF reader. */
body.mley-oaj-page {
  /* Follow the portal theme instead of maintaining a separate search palette. */
  --oaj-bg: var(--bg-surface); --oaj-surface: var(--bg-surface); --oaj-text: var(--text-color);
  --oaj-muted: var(--text-muted); --oaj-line: var(--border-color);
  --oaj-accent: var(--accent-color); --oaj-selected: var(--surface-accent);
  --cjf-results-width: 50%; --cjf-header-height: 64px;
  background: var(--oaj-bg); color: var(--oaj-text); font-family: "Comfortaa", sans-serif;
}
.mley-oaj-page [hidden] { display: none !important; }
/* Keep the shared navigation menu above the PDF and its resize handle. */
body.mley-oaj-page .fixed-header { z-index: 1050; }
.mley-oaj-page .fixed-header .mley-oaj-filter-restore {
  flex: 0 0 auto; min-height: 44px; white-space: nowrap; font-size: .8rem;
}
/* Loading PDF styles must not resize the shared saved-items control. */
.mley-oaj-page .fixed-header .mley-saved-toggle { font-size: .8rem; padding: .4rem .65rem; }
@media (max-width: 1080px) { .mley-oaj-page .fixed-header .mley-saved-toggle { padding: .35rem; } }
.mley-oaj-page a { color: var(--oaj-accent); text-underline-offset: 3px; }
.mley-oaj-page :is(button, a, input, summary):focus-visible { outline: 3px solid var(--accent-color); outline-offset: 3px; }
body.mley-oaj-page .mley-cjf-search .btn { font: 600 14px/1.4 "Comfortaa", sans-serif; border-radius: 999px; min-height: 40px; padding: 8px 14px; box-shadow: none; }
body.mley-oaj-page .mley-cjf-search .btn-outline-primary { color: var(--oaj-accent); border: 1px solid var(--oaj-line); background: var(--oaj-surface); }
.mley-oaj-page .btn:hover:not(:disabled) { filter: brightness(.94); }
.mley-oaj-page .btn:disabled { opacity: .45; cursor: default; }
.mley-oaj-navbar { padding: 0 !important; }
.mley-oaj-navbar nav { display: flex; align-items: center; gap: 22px; min-height: 60px; padding: 8px 24px; width: 100%; }
.mley-oaj-brand { white-space: nowrap; }
.mley-oaj-laws, .mley-oaj-current { font-size: 13px; }
.mley-oaj-current { font-weight: 650; color: var(--oaj-muted); border-left: 1px solid var(--oaj-line); padding-left: 22px; }
.mley-oaj-nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.mley-oaj-nav-actions .mley-nav-button { gap: 7px; }
.mley-oaj-page #panel { margin: 0 !important; padding: 0; width: 100%; min-width: 0; transform: none !important; }
.mley-oaj-page #panel .home-content-shell { width: min(100% - 48px, 1160px) !important; max-width: none !important; margin: calc(var(--cjf-header-height) + 24px) auto 32px !important; padding: 0 !important; }
.mley-oaj-page #mley-oaj-search-card { margin: 0; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; }
.mley-oaj-page #mley-oaj-search-card > .card-body { padding: 0; min-width: 0; overflow: visible; }
.mley-oaj-search-shell { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 0; }
.mley-oaj-search-shell h1 { margin: 0; font: 800 clamp(22px, 2.4vw, 27.2px)/1.35 "Comfortaa", sans-serif; color: var(--oaj-text); }
.mley-oaj-search-toolbar { position: static; z-index: 12; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; background: var(--oaj-bg); border: 1px solid var(--oaj-line); border-radius: 16px; margin: 12px 0 16px; }
/* Frost the scrolling results behind the search controls, never their text. */
@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .mley-oaj-search-toolbar {
    background: rgba(255, 255, 255, .84);
    background: color-mix(in srgb, var(--bg-surface) 84%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
  :root[data-theme="dark"] .mley-oaj-search-toolbar {
    background: rgba(31, 43, 56, .88);
    background: color-mix(in srgb, var(--bg-surface) 88%, transparent);
  }
}
@media (prefers-reduced-transparency: reduce) {
  :root .mley-oaj-page .mley-oaj-search-toolbar {
    background: var(--oaj-bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.mley-oaj-search-form { margin: 0; min-width: 0; }
.mley-oaj-match-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 0; font-size: 12px; color: var(--oaj-muted); }
.mley-oaj-match-mode select { min-width: 0; max-width: 100%; min-height: 40px; padding: 7px 10px; border: 1px solid var(--oaj-line); border-radius: 10px; background: var(--bg-input, var(--oaj-surface)); color: var(--oaj-text); font: inherit; }
.mley-oaj-query-chip { align-self: flex-start; }
.mley-oaj-search-toolbar > [data-cjf-retry] { align-self: flex-start; }
.mley-cjf-input-row input { font-family: inherit; }
.mley-cjf-status { color: var(--oaj-muted); font-size: 12px; margin: 0; line-height: 1.5; }
.mley-cjf-status:empty { display: none; }
.mley-cjf-status.mley-cjf-error { color: #b12736; }
:root[data-theme="dark"] .mley-cjf-status.mley-cjf-error { color: #ffadad; }
.mley-cjf-search[aria-busy="true"] .mley-cjf-status::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 7px; border: 2px solid var(--oaj-line); border-top-color: var(--oaj-accent); border-radius: 50%; vertical-align: -2px; animation: oaj-spin .8s linear infinite; }
@keyframes oaj-spin { to { transform: rotate(360deg); } }
.mley-oaj-result-navigation { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 0; padding-top: 12px; border-top: 1px solid var(--oaj-line); min-width: 0; }
.mley-oaj-results-summary { flex: 1 1 140px; font-size: 12px; line-height: 1.6; color: var(--oaj-muted); margin: 0; padding: 4px 0; }
.mley-cjf-pagination { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; padding: 2px 0; max-width: 100%; font-size: 12px; }
.mley-cjf-pagination [data-cjf-page] { min-width: 0; text-align: center; line-height: 1.5; }
.mley-cjf-pagination .btn { flex: 0 0 auto; min-width: 40px; min-height: 40px; padding: 5px 9px; font-size: 17px; }
.mley-oaj-results-list { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.mley-oaj-page .mley-oaj-results-list .list-group-item { min-width: 0; margin: 0; padding: 18px 20px; background: var(--oaj-surface); border: 1px solid var(--oaj-line); border-radius: 16px; box-shadow: var(--shadow-card); color: var(--oaj-text); }
.mley-oaj-page .mley-oaj-results-list .mley-cjf-selected { border-color: var(--oaj-accent); background: var(--oaj-selected); box-shadow: inset 3px 0 var(--oaj-accent); }
.mley-oaj-result-exp { font: 650 17px/1.3 "Comfortaa", sans-serif; margin: 0; color: var(--oaj-text); }
.mley-oaj-result-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mley-oaj-result-heading .mley-oaj-result-exp { min-width: 0; overflow-wrap: anywhere; }
.mley-oaj-result-actions { display: flex; flex: 0 0 auto; align-items: flex-start; gap: 6px; }
body.mley-oaj-page .mley-cjf-search .mley-oaj-result-save {
  min-width: 96px; min-height: 44px; font-size: 12px; white-space: nowrap;
}
body.mley-oaj-page .mley-cjf-search .mley-oaj-result-minimize {
  flex: 0 0 44px; width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 24px; line-height: 1;
}
.mley-cjf-authority { font-size: 13px; line-height: 1.5; margin: 5px 0 0; overflow-wrap: anywhere; }
.mley-oaj-result-chips { display: flex; flex-wrap: wrap; gap: 5px 0; color: var(--oaj-muted); font-size: 12px; margin: 8px 0 0; }
.mley-oaj-result-chips span + span::before { content: '·'; margin: 0 8px; }
.mley-oaj-result-block { margin-top: 12px; }
.mley-oaj-result-block > span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; font-weight: 650; color: var(--oaj-muted); margin-bottom: 3px; }
.mley-oaj-result-block p { font: 14px/1.6 "Comfortaa", sans-serif; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.mley-oaj-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.mley-oaj-excerpt.is-expanded { display: block; }
.mley-oaj-expand { border: 0; padding: 3px 0; background: transparent; color: var(--oaj-accent); font: 600 12px/1.6 "Comfortaa", sans-serif; min-height: 30px; }
.mley-oaj-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 13px; }
.mley-cjf-document-link { display: inline-flex; align-items: center; font-size: 13px !important; max-width: 100%; white-space: normal; }
.mley-cjf-document-link[aria-current="true"] { font-weight: 700; }
.mley-oaj-result-share { font-size: 13px !important; white-space: nowrap; }
.mley-oaj-details { color: var(--oaj-muted); font-size: 12px; overflow-wrap: anywhere; }
.mley-oaj-details > summary, .mley-oaj-sources > summary { cursor: pointer; }
.mley-oaj-details p { margin: 6px 0 0; }
.mley-oaj-sources { color: var(--oaj-muted); font-size: 13px; margin-top: 22px; padding: 14px 0; border-top: 1px solid var(--oaj-line); }
.mley-oaj-sources ul { margin: 10px 0 0; padding-left: 20px; } .mley-oaj-sources li + li { margin-top: 8px; }
.mley-oaj-source-note { color: var(--oaj-muted); font-size: 12px; }
.mley-scjn-section { padding: 16px; margin-bottom: 16px; border: 1px solid var(--oaj-line); border-radius: 10px; background: var(--oaj-surface); }
.mley-scjn-section summary { cursor: pointer; } .mley-scjn-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.mley-scjn-text { white-space: pre-wrap; max-height: 65vh; overflow: auto; }
/* Both the shared reader and the signed-link fallback use the same split. */
body.mley-oaj-page:is(.mley-reader-open,.mley-cjf-document-open) { overflow: hidden; }
body.mley-oaj-page.mley-reader-open .mley-reader-main,
body.mley-oaj-page.mley-cjf-document-open #panel { position: fixed !important; top: var(--cjf-header-height) !important; left: var(--cjf-workspace-left,0px) !important; right: auto !important; bottom: 0 !important; width: var(--cjf-results-width) !important; height: auto !important; min-height: 0 !important; overflow: auto !important; overscroll-behavior: contain; }
body.mley-oaj-page:is(.mley-reader-open,.mley-cjf-document-open) #panel .home-content-shell { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 16px !important; }
body.mley-oaj-page:is(.mley-reader-open,.mley-cjf-document-open) #mley-oaj-search-card { container-type: normal; }
body.mley-oaj-page:is(.mley-reader-open,.mley-cjf-document-open) #mley-oaj-search-card > .card-body { padding: 0; }
body.mley-oaj-page:is(.mley-reader-open,.mley-cjf-document-open) .mley-oaj-search-shell { align-items: flex-start; gap: 8px; flex-wrap: wrap; }
body.mley-oaj-page:is(.mley-reader-open,.mley-cjf-document-open) .mley-oaj-search-shell h1 { font-size: 21px; }
body.mley-oaj-page:is(.mley-reader-open,.mley-cjf-document-open) .mley-oaj-search-toolbar { top: 0; padding: 12px; }
body.mley-oaj-page .mley-reader-panel, .mley-oaj-page #cjf-document-panel { width: calc(100% - var(--cjf-workspace-left,0px) - var(--cjf-results-width)); top: var(--cjf-header-height); background: var(--oaj-surface); color: var(--oaj-text); border-left: 1px solid var(--oaj-line); }
.mley-oaj-page .mley-reader-heading { padding: 8px 12px; gap: 8px; flex-wrap: nowrap; }
.mley-oaj-page .mley-reader-heading h2 { flex: 1 1 0; min-width: 0; font: 600 13px/1.4 "Comfortaa", sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mley-oaj-page .mley-reader-actions { flex: 0 0 auto; gap: 4px; flex-wrap: nowrap; }
.mley-oaj-page .mley-reader-control { border-color: var(--oaj-line); min-height: 36px; font-size: 12px; }
.mley-oaj-page #cjf-document-panel { position: fixed; right: 0; bottom: 0; display: flex; flex-direction: column; z-index: 1040; min-width: 0; min-height: 0; }
.mley-cjf-document-heading { display: flex; gap: 6px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--oaj-line); }
#cjf-document-title { font-size: 13px; margin: 0; flex: 1; min-width: 0; overflow-wrap: anywhere; }
#cjf-document-frame-host { flex: 1; min-height: 0; } #cjf-document-frame-host iframe { width: 100%; height: 100%; border: 0; }
#cjf-workspace-divider { position: fixed; left: calc(var(--cjf-workspace-left,0px) + var(--cjf-results-width) - 7px); top: var(--cjf-header-height); bottom: 0; width: 14px; padding: 0; border: 0; background: transparent; z-index: 1045; cursor: col-resize; touch-action: none; display: flex; align-items: center; justify-content: center; }
#cjf-workspace-divider span { width: 4px; height: 44px; border-radius: 4px; background: var(--text-subtle); }
#cjf-workspace-divider:hover span, #cjf-workspace-divider:focus-visible span { background: var(--oaj-accent); }
body.mley-oaj-resizing { cursor: col-resize; user-select: none; } body.mley-oaj-resizing iframe { pointer-events: none; }
body.mley-oaj-page.mley-has-article-dock:is(.mley-reader-open,.mley-cjf-document-open) #panel,
body.mley-oaj-page.mley-has-article-dock #cjf-workspace-divider,
body.mley-oaj-page.mley-has-article-dock #cjf-document-panel { bottom: calc(68px + env(safe-area-inset-bottom)) !important; }
@media(max-width: 767px) {
  .mley-oaj-navbar nav { padding: 8px 12px; gap: 12px; flex-wrap: wrap; }
  .mley-oaj-current { display: none; }
  .mley-oaj-laws { font-size: 12px; } .mley-oaj-nav-actions { gap: 5px; }
  .mley-oaj-nav-actions .mley-nav-button { min-height: 40px; }
  .mley-oaj-page #panel .home-content-shell { width: calc(100% - 24px) !important; margin-top: calc(var(--cjf-header-height) + 16px) !important; }
  .mley-oaj-search-shell { align-items: flex-start; flex-direction: column; gap: 8px; }
  .mley-oaj-search-toolbar { padding: 12px; }
  .mley-oaj-page .mley-oaj-results-list .list-group-item { padding: 14px; }
  body.mley-oaj-page .mley-reader-panel, body.mley-oaj-page #cjf-document-panel { width: 100%; }
  body.mley-oaj-page.mley-cjf-document-open #panel { visibility: hidden; }
  #cjf-workspace-divider { display: none; }
  .mley-oaj-page .mley-reader-heading { flex-wrap: wrap; }
  .mley-oaj-page .mley-reader-heading h2 { flex-basis: 100%; }
  .mley-oaj-page .mley-reader-actions { margin-left: auto; }
  .mley-oaj-page .mley-reader-control { min-height: 40px; }
  .mley-cjf-pagination .btn { min-width: 40px; min-height: 40px; }
}
@media(max-width: 430px) {
  .mley-oaj-navbar nav { gap: 8px; }
  .mley-oaj-nav-actions :is(.mley-saved-toggle-label,.theme-toggle__label) { display: none; }
  .mley-oaj-nav-actions { margin-left: auto; }
  .mley-oaj-laws { max-width: 105px; line-height: 1.5; }
}
@media(prefers-reduced-motion: reduce) { .mley-cjf-search[aria-busy="true"] .mley-cjf-status::before { animation: none; } }

/* Facets adapt to the actual results pane, including divider resizing. */
.mley-oaj-workspace { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; column-gap: 24px; row-gap: 0; }
.has-filter-sidebar .mley-oaj-workspace { grid-template-columns: 244px minmax(0, 1fr); }
.mley-oaj-search-main, .mley-oaj-filters { min-width: 0; }
.mley-oaj-search-main { display: block; container: oaj-search-main / inline-size; }
.has-filter-sidebar .mley-oaj-search-main { display: block; }
.mley-oaj-content-ad { min-width: 0; max-width: 100%; margin: 1.5rem 0; }
.mley-oaj-content-ad[hidden] { display: none; }
.mley-oaj-content-ad > .mley-ad-shell { margin: 0; }
.mley-oaj-filters { position: sticky; top: calc(var(--cjf-header-height) + 16px); display: flex; flex-direction: column; max-height: calc(100dvh - var(--cjf-header-height) - 100px); overflow: hidden; padding: 14px; border: 1px solid var(--oaj-line); border-radius: 16px; background: var(--oaj-surface); }
.mley-oaj-filters-body { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding: 3px; }
.mley-oaj-filters-heading, .mley-oaj-filters-footer { flex: 0 0 auto; }
.mley-oaj-filters-footer { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--oaj-line); }
body.mley-oaj-page .mley-oaj-filters-footer .btn { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 999px; font: 600 14px/1.4 "Comfortaa", sans-serif; }
.mley-oaj-filter-pending { margin: 0; font-size: 12px; line-height: 1.5; color: var(--oaj-muted); }
body.mley-oaj-page:is(.mley-reader-open,.mley-cjf-document-open) .mley-oaj-filters { top: 8px; }
.mley-oaj-filters-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mley-oaj-filters-heading h2 { font: 700 16px/1.4 "Comfortaa", sans-serif; margin: 0; }
.mley-oaj-filters-heading button { min-width: 40px; min-height: 40px; border-radius: 999px; border: 1px solid var(--oaj-line); background: var(--oaj-surface); color: var(--oaj-text); font-size: 20px; }
.mley-oaj-filter-group { border-top: 1px solid var(--oaj-line); padding: 11px 0; }
.mley-oaj-filter-group > summary { cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; }
.mley-oaj-filter-group > summary > span { color: var(--oaj-accent); }
.mley-oaj-filter-search { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; margin-top: 10px; border-radius: 10px; border: 1px solid var(--oaj-line); background: var(--bg-input, var(--oaj-surface)); color: var(--oaj-text); font: 12px/1.5 "Comfortaa", sans-serif; }
.mley-oaj-filter-search::placeholder { color: var(--oaj-muted); opacity: 1; }
.mley-oaj-filter-options { max-height: 290px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; margin-top: 8px; }
.mley-oaj-filter-option { display: grid; grid-template-columns: 17px minmax(0, 1fr); align-items: start; gap: 8px; padding: 8px 2px; margin: 0; font-size: 12px; line-height: 1.5; cursor: pointer; color: var(--oaj-text); }
.mley-oaj-filter-option input { flex: 0 0 17px; width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--oaj-accent); }
.mley-oaj-filter-option span { min-width: 0; overflow-wrap: anywhere; }
.mley-oaj-filter-notice { font-size: 12px; line-height: 1.5; color: var(--oaj-muted); margin: 8px 0; }
.mley-oaj-filter-notice:empty { display: none; }
.mley-oaj-filter-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 0; }
.mley-oaj-filter-actions:not(:has(button:not([hidden]))) { display: none; }
.mley-oaj-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; max-height: 126px; overflow: auto; padding: 3px; }
.mley-oaj-filter-chip { max-width: 100%; border: 1px solid var(--oaj-line); border-radius: 16px; background: var(--oaj-selected); color: var(--oaj-text); font: 600 11px/1.5 "Comfortaa", sans-serif; padding: 6px 10px; overflow-wrap: anywhere; text-align: left; }
.mley-oaj-filter-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .3); z-index: 1090; }
.mley-oaj-filter-backdrop[hidden] { display: none; }
body.mley-oaj-page .mley-oaj-filters.is-drawer { position: fixed; inset: 0 auto 0 0; width: min(360px, calc(100vw - 32px)); max-height: none; height: 100dvh; border-radius: 0 16px 16px 0; padding: max(16px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom)); z-index: 1100; box-shadow: var(--shadow-card); }
.mley-oaj-filters.is-drawer .mley-oaj-filter-options { max-height: 42dvh; }
@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .mley-oaj-filters { background: color-mix(in srgb, var(--oaj-surface) 92%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
@media (prefers-reduced-transparency: reduce) {
  .mley-oaj-filters { background: var(--oaj-surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Keep secondary controls folded on every screen and scroll with the results. */
.mley-oaj-search-toolbar.is-options-collapsed :is(.mley-oaj-match-mode, [data-oaj-filter-chips], [data-oaj-filters-clear]) { display: none; }
.mley-oaj-query-chip { display: inline-flex; align-items: center; gap: 6px; }
.mley-oaj-query-chip [data-oaj-query-label] { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mley-oaj-query-chip > [aria-hidden] { flex: 0 0 auto; }
@media (min-width: 768px) {
  /* Use the real pane width so the split PDF view stays comfortable. */
  @container oaj-search-main (min-width: 600px) {
    .mley-oaj-search-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
    .mley-oaj-search-toolbar > * { grid-column: 1 / -1; min-width: 0; }
    .mley-oaj-search-toolbar > .mley-oaj-search-form { grid-row: 1; grid-column: 1; }
    .mley-oaj-search-toolbar > .mley-oaj-filter-actions { grid-row: 1; grid-column: 2; max-width: 220px; }
    .mley-oaj-search-toolbar > .mley-oaj-query-chip { justify-self: start; }
  }
}
@media (max-width: 767px) {
  body.mley-oaj-page .mley-oaj-search-toolbar { position: static; gap: 8px; padding: 10px; margin: 8px 0 12px; }
  .mley-oaj-page .mley-cjf-input-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; width: 100%; max-width: 100%; min-height: 50px; padding: 2px 3px 2px 12px; }
  .mley-oaj-page .mley-cjf-input-row > i { display: none; }
  .mley-oaj-page .mley-cjf-input-row input { min-height: 44px; padding: 0; font-size: 16px; }
  body.mley-oaj-page .mley-cjf-input-row [data-cjf-submit] { position: static; width: auto; min-width: 72px; min-height: 44px; padding: 8px 12px; }
  .mley-oaj-match-mode { margin-top: 8px; }
  .mley-oaj-match-mode select { min-height: 44px; font-size: 16px; width: 100%; }
  body.mley-oaj-page .mley-oaj-filter-actions .btn { min-height: 44px; font-size: 12px; }
  .mley-oaj-filter-actions { gap: 6px 8px; }
  .mley-oaj-filter-actions [data-oaj-options-toggle] { margin-left: auto; }
  .mley-oaj-query-chip { width: 100%; min-height: 44px; }
  .mley-oaj-query-chip [data-oaj-query-label] { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .mley-oaj-filter-chips { flex-wrap: nowrap; max-height: none; padding: 2px; }
  .mley-oaj-filter-chips .mley-oaj-filter-chip { flex: 0 0 auto; min-height: 44px; max-width: 85%; }
  .mley-oaj-filter-actions [data-oaj-filters-clear] { min-height: 44px; }
  .mley-oaj-result-navigation { flex-wrap: nowrap; gap: 6px; padding-top: 8px; }
  .mley-oaj-results-summary { flex: 1 1 0; min-width: 0; padding: 0; font-size: 11px; overflow-wrap: anywhere; }
  .mley-cjf-pagination { flex: 0 0 auto; gap: 4px; padding: 0; font-size: 11px; }
  body.mley-oaj-page .mley-cjf-pagination .btn { min-width: 44px; min-height: 44px; padding: 6px; }
  .mley-cjf-pagination [data-cjf-page] { max-width: 86px; overflow-wrap: anywhere; }
  .mley-oaj-filter-pending { font-size: 11px; }
}
/* Match the home navigation width without taking space from the PDF split. */
@media(min-width:1081px){
  body.mley-oaj-page:not(.mley-reader-open):not(.mley-cjf-document-open) #panel{margin-left:220px!important;width:calc(100% - 220px)}
  .mley-oaj-navbar #mley-nav-sidebar-toggle{display:none!important}
}
@media(max-width:767px){
  .mley-oaj-navbar nav{gap:8px;padding-inline:10px}
  .mley-oaj-navbar .mley-oaj-laws,.mley-oaj-navbar .mley-oaj-current{display:none}
}
