/* ALLCARDS (round 2): /all page, header pill + Simcha Board in the top bar, home top-bar spacing, strip drag */
.acp{max-width:1480px;margin:0 auto;padding:18px 20px 40px}
.ac-head{text-align:center;max-width:860px;margin:0 auto 14px}
.ac-head h1{margin:6px 0 8px;font-size:clamp(22px,3vw,32px)}
.ac-intro{margin:0 auto;color:#555;line-height:1.55;font-size:15px}
.ac-div{border:0;border-top:1px solid #e6e6e6;width:120px;margin:14px auto 0}
.ac-bar{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #eee;position:sticky;top:0;background:#fff;z-index:30}
.ac-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-end;flex:1}
.ac-f{display:flex;flex-direction:column;gap:3px;font-size:12px;color:#666;min-width:120px}
.ac-f select{height:38px;border:1px solid #d8d8d8;border-radius:8px;padding:0 10px;background:#fff;font:inherit;font-size:14px;color:#222;max-width:220px}
.ac-right{display:flex;gap:12px;align-items:flex-end;margin-inline-start:auto}
.ac-views{display:flex;align-items:center;gap:4px;font-size:12px;color:#666}
.ac-views span{margin-inline-end:4px}
.ac-views button,.ac-favf{height:38px;min-width:38px;border:1px solid #d8d8d8;border-radius:8px;background:#fff;cursor:pointer;font-weight:600;color:#333}
.ac-views button.on{background:var(--teal,#006775);border-color:var(--teal,#006775);color:#fff}
.ac-favf{display:inline-grid;place-items:center;padding:0 9px}.ac-favf svg{width:18px;height:18px}.ac-favf.on{color:#d33;border-color:#d33}
.ac-fbtn,.ac-done{display:none}
.ac-info{display:flex;align-items:center;gap:12px;padding:10px 0;color:#666;font-size:14px;min-height:40px}
.ac-clear{border:0;background:none;color:var(--teal,#006775);text-decoration:underline;cursor:pointer;font:inherit}
.ac-clear.hidden,.ac-more.hidden,.ac-empty.hidden{display:none}
.ac-grid{display:grid;grid-template-columns:repeat(var(--ac-cols,4),minmax(0,1fr));gap:18px}
.ac-tile{background:#fff;border:1px solid #eee;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.04);transition:box-shadow .15s,transform .15s;content-visibility:auto;contain-intrinsic-size:auto 360px}
@media (hover:hover){.ac-tile:hover{box-shadow:0 6px 18px rgba(0,0,0,.09);transform:translateY(-2px)}} /* BUG146: no sticky hover on phones */
.ac-th{position:relative;display:block;aspect-ratio:4/5;background:#f6f5f2}
.ac-th img{position:absolute;inset:6%;width:88%;height:88%;object-fit:contain;filter:drop-shadow(0 2px 5px rgba(0,0,0,.12))}
.ac-th canvas{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);max-width:88%;max-height:88%;width:auto;height:auto;opacity:0;transition:opacity .2s;filter:drop-shadow(0 2px 5px rgba(0,0,0,.12))}.ac-th canvas.ok{opacity:1}
.ac-noimg{position:absolute;inset:0;display:grid;place-items:center;color:#999;font-size:13px;padding:8px;text-align:center}
.ac-price{position:absolute;top:8px;inset-inline-end:8px;background:#fff;color:#1f2b4a;font-weight:700;font-size:13px;padding:3px 8px;border-radius:999px;box-shadow:0 1px 4px rgba(0,0,0,.12)}
.ac-meta{display:flex;align-items:center;gap:6px;padding:8px 10px;min-height:40px}
.ac-heart{border:0;background:none;padding:2px;width:28px;height:28px;cursor:pointer;color:#888;flex:none}.ac-heart svg{width:20px;height:20px}.ac-heart.on{color:#d33}
.ac-code{flex:1;min-width:0;font-weight:600;font-size:13px;color:#222;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ac-sw{display:flex;gap:3px;flex:none}.ac-sw i{width:12px;height:12px;border-radius:50%;border:1px solid rgba(0,0,0,.15);display:block}
.ac-empty{text-align:center;padding:40px 10px}.ac-empty p{font-size:17px;margin-bottom:14px}
.ac-morewrap{text-align:center;padding:20px 0}.ac-sent{height:1px}
.ac-load{display:grid;place-items:center;min-height:40vh}.ac-spin{width:32px;height:32px;border:3px solid #ddd;border-top-color:var(--teal,#006775);border-radius:50%;animation:acsp 1s linear infinite}@keyframes acsp{to{transform:rotate(1turn)}}
.acp[data-few] .ac-grid{--ac-cols:4}
@media (max-width:760px){
 .acp{padding:10px 10px 30px}
 .ac-bar{gap:8px;align-items:center}
 .ac-fbtn{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 14px;border:1px solid #d8d8d8;border-radius:8px;background:#fff;font:inherit;font-weight:600;cursor:pointer}
 .ac-fbtn b{background:var(--teal,#006775);color:#fff;border-radius:999px;padding:0 7px;font-size:12px}
 .ac-filters{display:none;position:fixed;inset:auto 0 0 0;z-index:200;background:#fff;padding:16px 16px max(16px,env(safe-area-inset-bottom));border-radius:16px 16px 0 0;box-shadow:0 -8px 30px rgba(0,0,0,.2);flex-direction:column;align-items:stretch;max-height:80vh;overflow:auto}
 .ac-filters.open{display:flex}
 .ac-f{min-width:0}.ac-f select{max-width:none;height:44px}
 .ac-done{display:block;height:46px;border:0;border-radius:10px;background:var(--teal,#006775);color:#fff;font:inherit;font-weight:700;font-size:16px}
 .ac-right{gap:8px}.ac-right .ac-f{min-width:0}.ac-right .ac-f>span,.ac-views>span{display:none}.ac-right .ac-f select{max-width:170px}
 .ac-grid{gap:10px}.ac-tile{contain-intrinsic-size:auto 300px}
}
/* header: "All Simcha Cards" pill (last in the simcha slider) + overlay link */
.dkh-allic{display:inline-block;width:20px;height:20px;flex:none}
.dkh-ovl .dkh-allic{width:22px;height:22px;margin-inline-end:8px;vertical-align:middle}
/* Simcha Board link in the top bar (moved up from the lower bar; Shimon 11:21) */
.dkh-top .dkh-right .dkh-simb{display:inline-flex;align-items:center;color:#fff;text-decoration:none;font-weight:600;font-size:14px;line-height:1;padding:6px 12px;border:1px solid rgba(255,255,255,.6);border-radius:999px;white-space:nowrap;background:transparent;margin:0;height:auto}
.dkh-top .dkh-right .dkh-simb:hover{background:rgba(255,255,255,.15)}
@media (max-width:820px){.dkh-top .dkh-right .dkh-simb{font-size:12px;padding:5px 9px}}
@media (max-width:359px){.dkh-top .dkh-right .dkh-simb{display:none}}
/* home top bar: breathing room at the edge and the top; no line under the simcha icons (Shimon 11:23) */
.home-h>.hh-top{padding:16px 28px 0;box-sizing:border-box}
.home-h .home-cats{border-bottom:0}
@media (max-width:760px){.home-h>.hh-top{padding:12px 16px 0}}
/* mouse-drag on horizontal strips (Shimon 11:29) */
@media (hover:hover) and (pointer:fine){.dkh-slider,.cs-in,[data-dkdrag]{cursor:grab}}
.dk-dragging{cursor:grabbing!important;user-select:none;scroll-behavior:auto!important;scroll-snap-type:none!important}
.dk-dragging a,.dk-dragging img{pointer-events:none}

/* ALLC: phone header fit — the Simcha Board pill in the top bar must not push the icons off a 360-430px screen */
@media (max-width:480px){.dkh-top .dkh-right{gap:8px}.dkh-top .dkh-icons.m{gap:10px}.dkh-top .dkh-right .dkh-simb{font-size:11px;padding:4px 7px;white-space:nowrap}.dkh-top .dkh-lang button{padding:0 6px}}
