/* search.css — the search highlight (search.js paints it with the CSS Custom Highlight API; no
   markup is added to cells), the current match (search-jump.js: a second, stronger highlight and an
   outline on its row), the counter and ↑/↓ beside a box, the mosaic's per-view summary, and the
   mosaic's page-wide search box in the page header. */

::highlight(bc-search){background-color:#FCE38A;color:#231F20}
::highlight(bc-search-current){background-color:#F59E42;color:#231F20}
.bc-grid tbody tr.bc-sj-cur{outline:2px solid #D9730D;outline-offset:-2px}

/* the mosaic's page box: between the titles and the header buttons */
.bc-mz-search{order:4;margin-left:auto;flex:0 1 auto;min-width:160px;display:flex;align-items:center;gap:6px}
.bc-mz-search[hidden]{display:none}
.bc-mz-search:not([hidden]) ~ .bc-head-right{margin-left:0}
/* the box is 320px wide (a width, not a flex basis: the auto-sized group around it takes its
   width from it); the counter and arrows sit beside it */
.bc-mz-qbox{position:relative;display:flex;align-items:center;flex:0 1 auto;width:320px;min-width:120px}
.bc-mz-qbox .bc-mz-q{flex:1 1 auto;width:100%;min-width:0;box-sizing:border-box;padding-right:30px}
.bc-mz-q::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}
.bc-mz-qx{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:24px;height:24px;padding:0;border:0;border-radius:6px;
  background:none;color:var(--ink-3,#9C9486);font-size:1.05rem;line-height:1;cursor:pointer}
.bc-mz-qx:hover{background:#F2ECE0;color:var(--ink,#231F20)}
.bc-mz-qx:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(var(--wuwm-gold-rgb,30,122,76),.45)}
.bc-mz-qx[hidden]{display:none}

/* the counter and ↑/↓ (the view page's sit in its toolbar, the mosaic's beside the page box). The
   counter is the text color at full strength: on a colored title bar a dimmed one falls below 4.5:1. */
.bc-sj{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;min-width:0}
.bc-sj[hidden]{display:none}
.bc-sj-count{font-family:var(--ui,inherit);line-height:1.2;font-size:.78rem;font-variant-numeric:tabular-nums;white-space:nowrap;color:inherit;padding:0 4px}
.bc-sj-sum{max-width:200px;overflow:hidden;text-overflow:ellipsis;border:1px solid transparent;border-radius:6px;background:none;
  padding:4px 6px;cursor:pointer;line-height:1.2}
.bc-sj-sum:hover{border-color:var(--hairline-strong,#D9D2C4)}
.bc-sj-sum[aria-expanded="true"]{border-color:var(--hairline-strong,#D9D2C4)}
.bc-sj-btn{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;box-sizing:border-box;
  font:inherit;line-height:1;color:var(--ink,#231F20);background:var(--surface,#fff);border:1px solid var(--hairline-strong,#D9D2C4);
  border-radius:8px;cursor:pointer}
.bc-sj-btn:hover{background:#F2ECE0}
.bc-sj-btn:disabled{opacity:.45;cursor:default}
.bc-sj-btn:disabled:hover{background:var(--surface,#fff)}
.bc-sj-sum:focus-visible,.bc-sj-btn:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(var(--wuwm-gold-rgb,30,122,76),.45)}

/* the mosaic's per-view summary: each tile and its matches; a tile with none is dimmed */
.bc-sj-menu{min-width:200px;padding:6px}
.bc-sj-item{display:flex;align-items:center;gap:12px;width:100%;box-sizing:border-box;padding:7px 10px;border:0;border-radius:6px;
  background:none;color:var(--ink,#231F20);font:inherit;font-size:.84rem;text-align:left;cursor:pointer}
.bc-sj-item:hover{background:#F2ECE0}
.bc-sj-item:disabled{opacity:.45;cursor:default}
.bc-sj-item:disabled:hover{background:none}
.bc-sj-item[aria-current="true"]{font-weight:600}
.bc-sj-item:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(var(--wuwm-gold-rgb,30,122,76),.45)}
.bc-sj-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bc-sj-n{flex:0 0 auto;font-variant-numeric:tabular-nums;opacity:.75}

@media (pointer:coarse){.bc-mz-qx{width:36px;height:36px}.bc-sj-btn{width:40px;height:40px}}
@media (max-width:640px){
  .bc-mz-search{order:6;flex:1 1 100%;margin-left:0}
  .bc-mz-qbox{flex:1 1 auto}
  .bc-mz-search:not([hidden]) ~ .bc-head-right{margin-left:auto}
}
@media print{.bc-mz-search,.bc-sj,.bc-sj-menu{display:none!important}.bc-grid tbody tr.bc-sj-cur{outline:none}}
