/* Site chrome shared by the D pages (api/design_d.py inlines it) and the old pages (patch_site.py links it as /chrome.css): header, instant-search dropdown, footer.
   Every rule is scoped to .hd / .sx / .ft so it cannot collide with styles.css. */
@font-face{font-family:B;src:url(/fonts/barlow-latin-500-normal.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:B;src:url(/fonts/barlow-latin-600-normal.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:B;src:url(/fonts/barlow-latin-700-normal.woff2) format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:C;src:url(/fonts/barlow-condensed-latin-800-normal.woff2) format("woff2");font-weight:800;font-display:swap}
.hd,.hd *,.ft,.ft *{box-sizing:border-box;margin:0;padding:0}
.hd{font-family:B,system-ui,sans-serif;color:#111}
.hd a,.ft a{color:inherit;text-decoration:none}
.hd{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid #EDEDEB}
.hd-in{max-width:1100px;margin:0 auto;padding:8px 16px;display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.hd .gears{display:block;height:24px;width:auto;align-self:center}
.hd .logo{display:flex;align-items:center;gap:6px;flex:1;min-width:0;height:40px;white-space:nowrap;flex:none;font:800 22px C;letter-spacing:.02em}
.hd .logo .co{font:600 12px B;letter-spacing:0}
.hd .find{order:3;flex:0 0 100%;min-width:0;display:flex;align-items:center;gap:8px}
.hd .field{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:40px;background:#F2F2F0;border-radius:12px;padding:0 12px}
.hd .field:focus-within{box-shadow:0 0 0 2px #111}
.hd .menu{display:none}
.hd .mm{flex:none}
.hd .mm summary{list-style:none;display:grid;place-items:center;width:40px;height:40px;cursor:pointer;border-radius:10px}
.hd .mm summary::-webkit-details-marker{display:none}
.hd .mm summary:focus-visible,.hd .menu a:focus-visible,.hd .sheet a:focus-visible,.hd .logo:focus-visible{outline:2px solid #111;outline-offset:2px}
.hd .sheet{position:absolute;left:0;right:0;top:100%;background:#fff;border-bottom:1px solid #EDEDEB;box-shadow:0 12px 24px rgba(0,0,0,.08);padding:6px 20px 14px;display:flex;flex-direction:column;animation:fade .15s ease-out;max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);overflow-y:auto}
body:has(.hd .mm[open]){overflow:hidden}
.hd .sheet a{font:600 18px B;padding:14px 0;border-bottom:1px solid #F2F2F0}
.hd .sheet a:first-child{background:#FEBD17;border-radius:12px;padding:14px;margin:8px 0;border:0;text-align:center}
.hd .sheet a:last-child{border:0}
@media (max-width:699px){.hd .nf{position:absolute;top:112px;right:16px;background:#fff;border-radius:8px;padding:4px 8px;box-shadow:0 4px 12px rgba(0,0,0,.12)}}
@media (min-width:700px){.hd-in{height:56px;padding:0 20px;gap:10px;flex-wrap:nowrap}.hd .logo{flex:none}.hd .find{order:0}.hd .logo .co{font:400 22px C;letter-spacing:.02em}.hd .mm{display:none}.hd .find{flex:0 1 340px;margin-left:auto}.hd .menu{display:flex;gap:18px;margin-left:8px}.hd .menu a{font:600 15px B;white-space:nowrap;padding:8px 0;border-bottom:2px solid transparent}.hd .menu a:hover{border-color:#FEBD17}.hd .menu a:first-child{background:#FEBD17;border-radius:10px;padding:8px 12px;border:0}}
.hd .field input{flex:1;min-width:0;width:100%;border:0;background:none;font:500 15px B;color:#111;outline:none}
.hd .field input::placeholder{color:#767676}
.hd .nf{font:600 13px B;color:#767676}
@media (min-width:1024px){.hd-in{max-width:none;padding:0 40px}}
/* Instant search dropdown (search.js): under the header field, full width on a phone, 440 px under the field from 700 px */
.sx{position:absolute;top:100%;left:0;right:0;margin:0 8px;background:#fff;border-radius:0 0 14px 14px;box-shadow:0 12px 28px rgba(0,0,0,.16);border:1px solid #EDEDEB;border-top:0;overflow:hidden;z-index:30}
.sx[hidden]{display:none}
.sx-r{display:grid;grid-template-columns:44px 1fr auto;grid-template-areas:"i t p" "i t d";align-items:center;column-gap:12px;padding:8px 12px;min-height:60px;border-top:1px solid #F2F2F0}
.sx-r:first-child{border-top:0}
.sx-r[hidden]{display:none}
.sx-r[aria-selected=true],.sx-r:hover{background:#FFF6DC}
.sx-i{grid-area:i;width:44px;height:44px;object-fit:contain;mix-blend-mode:multiply;background:#F2F2F0;border-radius:8px}
.sx-t{grid-area:t;min-width:0}
.sx-n{display:block;font:600 14px/1.25 B;color:#111;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sx-n mark{background:#FEBD17;color:inherit;border-radius:2px}
.sx-s{display:block;font:500 12px/1.3 B;color:#767676;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sx-p{grid-area:p;font:700 15px C;color:#111;text-align:right}
.sx-d{grid-area:d;justify-self:end;font:700 12px C;background:#FEBD17;border-radius:5px;padding:2px 5px 1px}
.sx-d[hidden]{display:none}
@media (min-width:700px){.hd .find{position:relative}.sx{left:auto;right:0;width:440px;margin:6px 0 0;border-top:1px solid #EDEDEB;border-radius:14px}}

/* the "brrt" (Jonas 15:18): rows whose product changed pop in 32 ms apart, top to bottom; thumbnails fade in once loaded */
.sx-r.pop{animation:sxPop 140ms ease-out both;animation-delay:calc(var(--j)*32ms)}
.sx-i{opacity:0;transition:opacity 120ms}.sx-i.on{opacity:1}
@keyframes sxPop{from{opacity:0;transform:translateY(-6px) scale(.98)}to{opacity:1;transform:none}}
@media (max-width:699px){.hd .mm{margin-left:auto}}
.ft{max-width:1100px;margin:0 auto;padding:24px 20px 32px;font:500 13px/1.5 B;color:#555;background:#fff}
.ft nav{display:flex;flex-wrap:wrap;gap:6px 18px;margin-bottom:10px}
.ft nav a{font:600 14px B;color:#111}
.ft p+p{margin-top:4px}
.ft p a{text-decoration:underline;color:#111}
