/* Brand preview (lane WF; js/whitelabel/brand-preview.js, docs/WL-PORTAL.md §12): a name the visitor types, drawn on
   the plate, the pack label and the packing list. Prefix .bp-. The drawings carry their colours as SVG attributes
   (the CSP forbids style attributes); the tile behind them is the same light card in both themes and on ink panels,
   because the drawings are paper and wood. Also here: the home band's own rules (.bp-band-*) and the catalogue's
   "Can carry your brand" switch (.bp-only). */
.bp{container-type:inline-size;display:grid;gap:14px;min-width:0;color:var(--fg);text-align:left}
.bp-form{display:grid;gap:8px;margin:0}
.bp-f{display:grid;gap:6px;min-width:0}
.bp-f label{font-weight:700;font-size:14px}
.bp .bp-name{width:100%;min-width:0;min-height:52px;padding:10px 14px;border:2px solid var(--or);border-radius:3px;background:#fbfaf7;color:#0d1b24;font:700 20px/1.2 var(--sans)}
.bp .bp-name::placeholder{color:#5b6b75;font-weight:400}
.bp-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.bp-cols{display:flex;flex-wrap:wrap;align-items:center;gap:2px;min-width:0;margin:0;padding:0;border:0}
.bp-sw{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;cursor:pointer}
.bp-sw svg{display:block;border-radius:50%;border:2px solid transparent;box-shadow:0 0 0 1.5px rgba(238,242,243,.75)}
.bp-sw input:checked+svg{box-shadow:0 0 0 2px var(--card,#fff),0 0 0 4px var(--fg)}
.bp-sw input:focus-visible+svg{outline:3px solid var(--ac);outline-offset:4px}
.bp-pick{width:44px;height:44px;margin-left:4px;padding:3px;border:1px solid var(--mu);border-radius:3px;background:transparent;cursor:pointer}
.bp-add{display:inline-flex;align-items:center;min-height:44px;padding:8px 14px;border:1px solid var(--fg);border-radius:3px;font-weight:700;font-size:14px;cursor:pointer}
.bp-add:hover{border-color:var(--ac);color:var(--ac)}
.bp-add:focus-within{outline:3px solid var(--ac);outline-offset:2px}
.bp-drop{min-height:44px;padding:8px 6px;border:0;background:none;color:var(--fg);font:inherit;font-size:14px;text-decoration:underline;cursor:pointer}
.bp-hint,.bp-msg{margin:0;color:var(--mu);font-size:13px;line-height:1.45}
.bp-msg:empty{display:none}
.bp-tiles{display:grid;gap:10px}
.bp-tile{display:grid;grid-template-rows:auto 1fr;min-width:0;margin:0;border:1px solid var(--ln);border-radius:4px;background:var(--card);overflow:hidden}
.bp-pic{background:#f4f1ea;aspect-ratio:360/280}
.bp-svg{display:block;width:100%;height:auto}
.bp-svg text{font-family:var(--sans)}
.bp-svg .bp-n{font-family:var(--disp)}
.bp-svg .bp-amp{font-family:var(--sans)}
.bp-tile figcaption{display:grid;gap:4px;align-content:start;padding:10px 12px 12px;color:var(--mu);font-size:13px;line-height:1.45}
.bp-tile figcaption b{color:var(--fg);font-size:14px}
.bp-tag{justify-self:start;padding:0 6px;border:1px solid currentColor;border-radius:2px;font-size:11px;font-weight:700;line-height:1.6;letter-spacing:.06em;text-transform:uppercase}
.bp-side{display:grid;gap:10px;align-content:start;min-width:0;padding:12px;border:1px dashed var(--ln);border-radius:4px;font-size:14px;line-height:1.5}
.bp-side p{margin:0;max-width:none}
.bp-keep{color:var(--mu)}
.bp-keep b{color:var(--fg)}
.bp-door a{color:inherit}
@container (min-width:520px){.bp-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.bp-tiles-1{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}}
/* three tiles in one row once each is at least 220px wide; the note runs under them (review r11, finding 22) */
@container (min-width:690px){.bp-tiles-3{grid-template-columns:repeat(3,minmax(0,1fr))}.bp-tiles-3 .bp-side{grid-column:1/-1;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px 20px}.bp-tiles-3 .bp-side .bp-keep{grid-row:span 2}}

/* the home band (templates/index.html): the preview takes the picture's place; the picture stays without scripting */
.wlb .bp-band-h{max-width:19ch}
@media (min-width:1200px){.wlb .wlb-g:has(.bp){grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr);gap:40px}}
.bp-band-n{margin:18px 0 0;max-width:36em;color:var(--mu-ink);font-size:13px;line-height:1.5}
.bp-fb img{display:block;width:100%;height:auto;border-radius:8px}
.bp-fb .fig{margin:0}

/* /catalogue/: "Can carry your brand" (plan D7). A checkbox and one rule: no script, and the search still filters.
   Each card sits in a .bp-item that takes no box of its own; a model with the flag carries data-brand. */
.bp-only{display:flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin:0;font-size:15px}
.bp-only label{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:700;cursor:pointer}
.bp-only input{width:20px;height:20px;margin:0}
.bp-only .n{color:var(--mu);font-weight:400}
.bp-only-s{flex:1 1 100%}
.bp-only-s:empty{display:none}
.bp-item{display:contents}
.cat-main:has(.bp-only-t:checked) .bp-item:not([data-brand]){display:none}
