/* Grouped search panel (issue 1259; layout approved by Rajeev, 13 Nov 2026 13:27 IST, handoffs/layout-1259-v1, option A).
   Loaded only when params['search.panel'] is on. Every rule is scoped under .dcsp (or html.dcsp-open), so nothing reaches a page that does not open the panel.
   Desktop: a white panel under the header (full width, scrolls inside). Phone (767px and below): a full-screen sheet, 3 items per kind. */
html.dcsp-open { overflow: hidden; }
.dcsp { position: fixed; left: 0; right: 0; top: 116px; bottom: 0; z-index: 2000; background: #fff; overflow: auto; font-family: Montserrat, Arial, sans-serif; color: #1a1a1a; line-height: 1.35; text-align: left; }
.dcsp[hidden] { display: none; }
.dcsp *, .dcsp *::before, .dcsp *::after { box-sizing: border-box; }
.dcsp-in { background: #fff; max-height: 100%; overflow: auto; padding: 16px 24px 32px; border-bottom: 1px solid rgba(26,26,26,.15); box-shadow: none; }
.dcsp-in > * { max-width: 1296px; margin-left: auto; margin-right: auto; }
.dcsp-bar { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 8px 0 16px; border: 2px solid #1a1a1a; border-radius: 12px; margin: 0 auto; }
.dcsp-mag { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.dcsp .dcsp-input, .dcsp .dcsp-input:focus { flex: 1; min-width: 0; width: auto; height: 100%; margin: 0; border: 0 !important; border-radius: 0; outline: 0 !important; background: transparent !important; box-shadow: none !important; font: inherit; font-size: 17px; color: inherit; padding: 0; -webkit-appearance: none; appearance: none; }
.dcsp-input::-webkit-search-cancel-button { display: none; }
.dcsp .dcsp-close { width: auto; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: #efefef; font: inherit; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: inherit; cursor: pointer; }
.dcsp-found { margin: 12px auto 18px; font-size: 12px; color: #555; }
.dcsp-found b { color: #1a1a1a; }
.dcsp-jump { display: none; }
.dcsp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 40px; align-items: start; margin-bottom: 26px; }
.dcsp-k { margin: 0 0 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(26,26,26,.15); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.dcsp-n { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #1a1a1a; color: #fff; font-size: 10px; }
.dcsp-list { display: flex; flex-direction: column; gap: 12px; }
.dcsp-item, .dcsp-item:hover, .dcsp-item:focus { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.dcsp-pic { flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; background: #efefea; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #6b6b66; }
.dcsp-sec--crafts .dcsp-pic { border-radius: 6px; }
.dcsp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dcsp-tx { display: flex; flex-direction: column; min-width: 0; }
.dcsp-t { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.dcsp-s { font-size: 11px; color: #777; }
.dcsp-all, .dcsp-all:hover, .dcsp-all:focus { display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 700; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.dcsp-sec--products .dcsp-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dcsp-sec--products .dcsp-item { flex-direction: column; align-items: stretch; gap: 6px; }
.dcsp-sec--products .dcsp-pic { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 4px; }
.dcsp-sec--products { grid-column: span 2; }
.dcsp-sec--products .dcsp-t { font-size: 11px; }
.dcsp-h { margin: 22px 0 8px; font-size: 22px; font-weight: 800; }
.dcsp-p { margin: 0 0 16px; font-size: 14px; color: #444; }
.dcsp-crafts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.dcsp-pill { height: 34px; padding: 0 16px; border: 1px solid rgba(26,26,26,.25); border-radius: 17px; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: inherit; cursor: pointer; }
.dcsp-pill b { color: #1d7a3a; }
.dcsp-k + .dcsp-acts, .dcsp-acts { display: flex; flex-wrap: wrap; gap: 12px; }
h3.dcsp-k { margin-top: 24px; border-bottom: 0; }
.dcsp-btn, .dcsp-btn:hover, .dcsp-btn:focus { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 2px solid #1a1a1a; border-radius: 8px; background: #fff; color: #1a1a1a; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
.dcsp-btn--solid, .dcsp-btn--solid:hover, .dcsp-btn--solid:focus { background: #1a1a1a; color: #fff; }
.dcsp-err { margin: 22px auto; font-size: 14px; }
.dcsp-input:focus-visible, .dcsp-close:focus-visible, .dcsp-pill:focus-visible, .dcsp-btn:focus-visible, .dcsp-item:focus-visible, .dcsp-all:focus-visible { outline: 3px solid #1d7a3a; outline-offset: 2px; }
/* inner pages (the shop, for one) zero the line height and size of links and spans: say them out so the panel looks the same on every page */
.dcsp .dcsp-item, .dcsp .dcsp-tx, .dcsp .dcsp-t, .dcsp .dcsp-s, .dcsp .dcsp-all, .dcsp .dcsp-found { line-height: 1.35; height: auto; position: static; float: none; transform: none; letter-spacing: normal; }
.dcsp .dcsp-t { font-size: 13px; } .dcsp .dcsp-s { font-size: 11px; } .dcsp .dcsp-sec--products .dcsp-t { font-size: 11px; }
.dcsp .dcsp-pic { height: 36px; } .dcsp .dcsp-sec--products .dcsp-pic { height: auto; }
/* the search button of the original header is shown pressed while the panel is open (as in the approved layout) */
.dco-srch[aria-expanded="true"] { background: #1a1a1a; color: #fff; border-radius: 8px; }
@media (max-width: 767px) {
  .dcsp { top: 0; background: #fff; }
  .dcsp-in { min-height: 100%; max-height: none; padding: 16px 16px 40px; border: 0; box-shadow: none; }
  .dcsp-bar { height: 56px; }
  .dcsp-found { display: none; }
  .dcsp-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px auto 8px; }
  .dcsp-jump[hidden] { display: none; }
  .dcsp-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
  .dcsp-sec--products { grid-column: auto; }
  .dcsp-sec--products .dcsp-list { display: flex; flex-direction: column; gap: 12px; }
  .dcsp-sec--products .dcsp-item { flex-direction: row; align-items: center; gap: 12px; }
  .dcsp-sec--products .dcsp-pic { width: 48px; height: 48px; aspect-ratio: auto; }
  .dcsp .dcsp-sec--products .dcsp-t { font-size: 14px; }
  .dcsp-pic { width: 48px; height: 48px; }
  .dcsp .dcsp-t { font-size: 15px; }
  .dcsp .dcsp-s { font-size: 13px; }
  .dcsp .dcsp-pic, .dcsp .dcsp-sec--products .dcsp-pic { height: 48px; }
  .dcsp-item:nth-child(n+4) { display: none; }
  .dcsp-h { font-size: 24px; }
  .dcsp-btn { height: 48px; }
}
.dcsp .dcsp-s { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
