/* The toolbar above template cards (assets/app/modules/template-toolbar.js), on the site's dark sections:
   the type tabs and Clear on the left, the search box at the right end, then what it says and any templates found elsewhere. */
.bp-template-toolbar{margin:0 0 24px}
.bp-template-toolbar:empty{display:none}
/* What the toolbar leaves out (hidden: a card, or a list with none left) stays out whatever display its own
   styles give it (the download centers' cards are flex). */
[data-filter-title][hidden],.bp-template-toolbar~[hidden]{display:none!important}
.bp-toolbar-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
/* The search box takes the right end of the row. */
.bp-search-form{display:flex;gap:8px;flex:0 1 470px;min-width:0;margin-left:auto}
/* The search button: a square of its own at the right of the box, with a magnifier. */
.bp-site .bp-search-button{display:grid;flex:none;place-items:center;width:44px;height:44px;min-height:0;margin:0;padding:0;border:0;border-radius:10px;background:#ffe329;color:#102548;cursor:pointer;box-shadow:none;transition:background .15s}
.bp-site .bp-search-button::before{content:'';width:20px;height:20px;background:currentColor;-webkit-mask:var(--bp-search-glass) center/contain no-repeat;mask:var(--bp-search-glass) center/contain no-repeat}
.bp-site .bp-search-button:hover{background:#fff07a}
.bp-site .bp-search-button:focus-visible{outline:3px solid #fff;outline-offset:2px}
.bp-site{--bp-search-glass:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E")}
/* The same dark field as the type tabs beside it. */
.bp-site .bp-search-input{flex:1;min-width:0;height:44px;margin:0;padding:0 14px;border:1px solid #ffffff55;border-radius:10px;background:#ffffff10;color:#fff;font:inherit;font-size:15px;box-shadow:none;color-scheme:dark}
.bp-site .bp-search-input:hover{border-color:#ffe329;background:#ffffff18}
.bp-site .bp-search-input::placeholder{color:#c7d6ee}
/* White while typing too: the theme's input[type=search]:focus turns text dark navy and outranks the rule above. */
.bp-site .bp-search-input:focus{outline:none;border-color:#ffe329;box-shadow:0 0 0 3px #ffe32966;color:#fff}
/* The type tabs: All, then each category with its icon, in one dark field as tall as the search box; the
   chosen one yellow like the search button. Too many for the row scroll sideways. */
.bp-site{--bp-filter-all:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Crect x='3' y='3' width='7.5' height='7.5' rx='2'/%3E%3Crect x='13.5' y='3' width='7.5' height='7.5' rx='2'/%3E%3Crect x='3' y='13.5' width='7.5' height='7.5' rx='2'/%3E%3Crect x='13.5' y='13.5' width='7.5' height='7.5' rx='2'/%3E%3C/svg%3E")}
.bp-filter-tabs{display:flex;flex:0 1 auto;gap:4px;min-width:0;padding:4px;border:1px solid #ffffff55;border-radius:12px;background:#ffffff10;overflow-x:auto;scrollbar-width:none}
.bp-filter-tabs::-webkit-scrollbar{display:none}
.bp-site .bp-filter-tab{display:inline-flex;flex:none;align-items:center;gap:8px;height:34px;min-height:0;margin:0;padding:0 14px 0 10px;border:0;border-radius:8px;background:transparent;color:#fff;font:inherit;font-size:14px;font-weight:700;line-height:1;letter-spacing:0;text-transform:none;white-space:nowrap;cursor:pointer;box-shadow:none;transition:background .15s,color .15s}
.bp-site .bp-filter-tab:hover{background:#ffffff1f;color:#fff}
.bp-site .bp-filter-tab[aria-pressed=true]{background:#ffe329;color:#102548}
.bp-site .bp-filter-tab:focus-visible{outline:3px solid #ffe32966;outline-offset:-1px}
.bp-filter-glyph{display:grid;flex:none;place-items:center;width:22px;height:22px}
.bp-filter-glyph img{display:block;width:20px;height:20px;object-fit:contain}
.bp-filter-all{display:block;width:16px;height:16px;background:currentColor;opacity:.85;-webkit-mask:var(--bp-filter-all) center/contain no-repeat;mask:var(--bp-filter-all) center/contain no-repeat}
.bp-site .bp-filter-clear{height:36px;min-height:0;margin:0;padding:0 6px;border:0;background:none;color:#c9dcff;font:inherit;font-size:13px;text-decoration:underline;text-underline-offset:3px;cursor:pointer;box-shadow:none}
.bp-site .bp-filter-clear:hover{color:#fff}
.bp-site .bp-filter-clear[hidden]{display:none}
.bp-site .bp-search-status{margin:10px 0 0;color:#c9dcff;font-size:13px}
.bp-site .bp-search-status:empty{display:none}
.bp-search-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:14px;margin:12px 0 0;padding:0;list-style:none}
.bp-search-results:empty{display:none}
.bp-search-card{display:flex;flex-direction:column;gap:8px;padding:8px;border:1px solid #ffffff33;border-radius:12px;background:#ffffff12;cursor:pointer;transition:background .2s,border-color .2s}
.bp-search-card:hover{background:#ffffff1f;border-color:#ffe329}
.bp-search-cover{display:block;width:100%;aspect-ratio:16/9;border-radius:8px;object-fit:cover;background:#ffffff1a}
.bp-site .bp-search-name{padding:0 4px 2px;color:#fff;font-size:14px;font-weight:700;line-height:1.35;text-decoration:none;overflow-wrap:anywhere}
.bp-site .bp-search-name[href]:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:560px){.bp-search-form{flex-basis:100%;margin-left:0}.bp-filter-tabs{flex:1 1 auto}.bp-search-results{grid-template-columns:1fr 1fr;gap:10px}}
@media(prefers-reduced-motion:reduce){.bp-search-card,.bp-site .bp-filter-tab{transition:none}}
