/* Public content and catalog search. */
.zncs,.zncs *{box-sizing:border-box}
.zncs{display:grid;gap:8px;width:min(620px,100%);min-width:0;color:#153f6c;font-family:inherit}
/* Footer owns the breathing room; scope it only to a footer that actually contains Content Search. */
:where(footer,#colophon,.site-footer):has(.zncs){margin-top:30px}
/* Neutralize theme/widget separators immediately attached below the footer search. */
.zncs+hr,.zncs+.wp-block-separator{display:none}
.zncs__label{font-size:20px;font-weight:800;line-height:1.2}
.zncs__field{display:grid;grid-template-columns:24px minmax(0,1fr) 34px;align-items:center;gap:7px;min-height:48px;padding:0 7px 0 12px;border:1px solid #bcd1e4;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(34,79,124,.06)}
.zncs__field:focus-within{border-color:#548fc6;box-shadow:0 0 0 3px rgba(54,121,184,.12)}
.zncs__icon{position:relative;display:block;width:17px;height:17px;border:2px solid #3678b5;border-radius:50%}
.zncs__icon::after{content:"";position:absolute;right:-5px;bottom:-3px;width:7px;height:2px;border-radius:2px;background:#3678b5;transform:rotate(-48deg)}
.zncs .zncs__field input[type="search"]{display:block;width:100%;min-width:0;height:46px;margin:0;padding:0;border:0;border-bottom:0;outline:0;background:transparent;color:#173d68;font:600 15px/1.35 inherit;box-shadow:none;appearance:none}
.zncs__field input[type="search"]::placeholder{color:#8193a7;font-weight:500}
.zncs__field input[type="search"]::-webkit-search-cancel-button{display:none}
.zncs__hint{margin:0;color:#6b7d90;font-size:12px;font-weight:500;line-height:1.4}
.zncs__clear{display:grid;width:32px;height:32px;place-items:center;margin:0;padding:0;border:0;border-radius:7px;background:#eef4f9;color:#4c7094;font:700 21px/1 inherit;cursor:pointer}
.zncs__clear:hover,.zncs__clear:focus-visible{background:#e3edf6;color:#214f7d;outline:0}
.zncs__status{min-height:0;color:#657d95;font-size:12px;line-height:1.35}
.zncs__status:empty{display:none}
.zncs__results:empty{display:none}
.zncs__results{display:grid;gap:7px;padding:8px;border:1px solid #cbddeb;border-radius:12px;background:#f8fbfe;box-shadow:0 10px 26px rgba(25,66,107,.09)}
.zncs-group{overflow:hidden;border:1px solid #d3e1ed;border-radius:10px;background:#fff}
.zncs-group>summary{list-style:none}
.zncs-group>summary::-webkit-details-marker{display:none}
.zncs-group__head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:9px 11px;background:#e7f0f8;color:#194d7f;cursor:pointer}
.zncs-group__head:hover,.zncs-group__head:focus-visible{background:#2769a5;color:#fff;outline:0}
.zncs-group__title{display:inline-flex;align-items:center;gap:7px;min-width:0;color:inherit}
.zncs-group__title strong{color:inherit;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.zncs-group__title small{display:inline-grid;flex:0 0 auto;min-width:23px;height:23px;place-items:center;padding:0 6px;border-radius:999px;background:#fff;color:#386b9b;font-size:11px;font-weight:850;line-height:1}
.zncs-group__head:hover .zncs-group__title small,.zncs-group__head:focus-visible .zncs-group__title small{background:rgba(255,255,255,.18);color:#fff}
.zncs-group__head i{position:relative;display:block;flex:0 0 16px;width:16px;height:16px}
.zncs-group__head i::before,.zncs-group__head i::after{content:"";position:absolute;top:7px;width:8px;height:2px;border-radius:2px;background:currentColor;transition:transform .18s ease}
.zncs-group__head i::before{left:1px;transform:rotate(45deg)}
.zncs-group__head i::after{right:1px;transform:rotate(-45deg)}
.zncs-group[open]>.zncs-group__head i::before{transform:rotate(-45deg)}
.zncs-group[open]>.zncs-group__head i::after{transform:rotate(45deg)}
.zncs-group__panel{display:grid;gap:7px;padding:8px}
.zncs-group__items{display:grid;gap:6px}
.zncs-result{display:grid;grid-template-columns:68px minmax(0,1fr);align-items:center;gap:10px;width:100%;min-width:0;padding:7px;border:1px solid #e0e8f0;border-radius:8px;background:#fff;color:#173e68;text-align:left;text-decoration:none}
.zncs-result:hover,.zncs-result:focus-visible{border-color:#8fb8da;background:#eef6fc;color:#0b5e9f;outline:0}
.zncs-result__media{display:grid;width:68px;height:52px;place-items:center;overflow:hidden;border-radius:6px;background:#eaf1f7;color:#5f7e9b;font-size:11px;font-weight:850}
.zncs-result__media img{display:block;width:100%;height:100%;object-fit:cover}
.zncs-result__copy{display:grid;gap:3px;min-width:0}
.zncs-result strong{color:inherit;font-size:13.5px;line-height:1.3;overflow-wrap:anywhere}
.zncs-result small{display:-webkit-box;overflow:hidden;color:#697f95;font-size:11px;line-height:1.35;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.zncs-result__match{color:#2d6d58;font-weight:700}
.zncs-group__more{justify-self:stretch;min-height:38px;padding:8px 12px;border:1px solid #bdd2e5;border-radius:8px;background:#edf4fa;color:#245786;font:800 12.5px/1.2 inherit;cursor:pointer}
.zncs-group__more:hover,.zncs-group__more:focus-visible{border-color:#8fb2d1;background:#e3eef7;color:#174b7b;outline:0}
/* Product groups reuse the same accordion and result markup with a warm palette. */
.zncs-group--products{border-color:#e2d5bf;background:#fffaf1}
.zncs-group--products>.zncs-group__head{background:#f3e6cf;color:#684c25}
.zncs-group--products>.zncs-group__head:hover,.zncs-group--products>.zncs-group__head:focus-visible{background:#866130;color:#fff}
.zncs-group--products .zncs-group__panel{background:#fffaf1}
.zncs-group--products .zncs-group__title small{color:#79582b}
.zncs-group--products .zncs-group__head:hover small,.zncs-group--products .zncs-group__head:focus-visible small{color:#fff}
.zncs-group--products .zncs-result{border-color:#e9ddca;color:#594726}
.zncs-group--products .zncs-result:hover,.zncs-group--products .zncs-result:focus-visible{background:#fff3de;border-color:#c9ad7b}
.zncs-group--products .zncs-result__media{background:#f3ebdd;color:#80643d}
.zncs-group--products .zncs-group__more{background:#f5ead6;border-color:#ddc6a0;color:#684c25}
.zncs-group--products .zncs-group__more:hover,.zncs-group--products .zncs-group__more:focus-visible{background:#eddbba;color:#513716}
@media(max-width:700px){
  .zncs{width:100%}
  .zncs__label{font-size:18px}
  .zncs__field{grid-template-columns:21px minmax(0,1fr) 32px;min-height:44px;padding-left:10px;border-radius:9px}
  .zncs__icon{width:15px;height:15px}
  .zncs__field input[type="search"]{height:42px;font-size:14px}
  .zncs__clear{width:30px;height:30px}
  .zncs__results{padding:6px;border-radius:10px}
  .zncs-group__head{min-height:42px;padding:8px 9px}
  .zncs-group__title strong{font-size:13px}
  .zncs-group__panel{padding:6px}
  .zncs-result{grid-template-columns:58px minmax(0,1fr);gap:8px;padding:6px}
  .zncs-result__media{width:58px;height:48px}
  .zncs-result strong{font-size:12.5px}
  .zncs-result small{font-size:10.5px}
}

/* Component display rules must respect the hidden state, including pagination. */
.zncs [hidden]{display:none}
