/* The store page (public/store.html, public/store.js): a compact head, a left rail on desktop (small map, freshness, categories), a photo strip, and
   the item list with search. Phone first; the rail appears at 1024 px. Colours are the Halite tokens; orange (--tokay-spot) is only the tiny dot. */
.tk-sp{padding-bottom:40px}
.tk-sp [hidden]{display:none!important}
.tk-sp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---- head ---- */
.tk-sp-head{display:flex;flex-direction:column;gap:14px}
.tk-sp-copy{min-width:0}
.tk-sp-copy .tk-pin-note{margin:10px 0 0;font-size:13px;color:var(--h-muted)}
.tk-sp-lede{margin:10px 0 0;max-width:72ch;font-size:14px;line-height:1.5;color:var(--h-muted)}
.tk-sp-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:12px}
.tk-sp-chip{display:inline-flex;align-items:center;gap:7px;min-height:32px;padding:0 11px;font:500 14px/1 var(--h-font);color:var(--h-text);background:var(--h-surface);border:1px solid var(--h-line);white-space:nowrap}
.tk-sp-chip .tk-dot{margin-top:0}
.tk-sp-act{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.tk-sp-act .tk-btn{min-height:44px}
.tk-sp-act #shoot-btn{flex:1 1 100%}
.tk-sp-act #dir-btn,.tk-sp-act #share-btn,.tk-sp-act #pin-btn{flex:1 1 0}
@media (min-width:768px){
  .tk-sp-head{flex-direction:row;align-items:flex-start;justify-content:space-between;gap:24px}
  .tk-sp-act{flex-wrap:wrap;justify-content:flex-end;max-width:520px}
  .tk-sp-act #shoot-btn{flex:0 0 auto}
  .tk-sp-act #dir-btn,.tk-sp-act #share-btn,.tk-sp-act #pin-btn{flex:0 0 auto}
}

/* ---- layout ---- */
.tk-sp-grid{display:block;margin-top:18px}
.tk-sp-rail{min-width:0}
.tk-sp-main{min-width:0;display:flex;flex-direction:column}
.tk-sp-main>.tk-sec,.tk-sp-rail>.tk-sp-facets{margin-top:0}
.tk-sp-main>.tk-sec+.tk-sec{margin-top:clamp(18px,3vw,28px)}
.tk-sp-facets{display:none}
.tk-sp .tk-mapslot{height:132px;margin-top:0}
.tk-sp .tk-mapslot.is-big{height:280px}
.tk-sp-mapx{position:absolute;right:8px;bottom:8px;z-index:2;min-height:44px}
.tk-sp .tk-fr{margin-top:10px}
@media (min-width:1024px){
  .tk-sp-grid{display:grid;grid-template-columns:280px minmax(0,1fr);column-gap:32px;align-items:start}
  .tk-sp-rail{position:sticky;top:16px}
  .tk-sp-facets{display:block;margin-top:18px}
  .tk-sp .tk-mapslot,.tk-sp .tk-mapslot.is-big{height:150px}
  .tk-sp-mapx{display:none}
  .tk-facets{max-height:max(220px,calc(100dvh - 400px));overflow-y:auto;overscroll-behavior:contain}
}
@media (min-width:1280px){.tk-sp-grid{grid-template-columns:300px minmax(0,1fr);column-gap:36px}}
/* phone: search and categories first, then the photo strip, then the list (the items section dissolves into the column so its parts can be ordered) */
@media (max-width:1023.98px){
  .tk-sp-items{display:contents}
  .tk-sp-items>*{order:6}
  .tk-sp-main>*{order:6}
  .tk-sp-items>.tk-sp-bar{order:1;margin-top:0}
  .tk-sp-items>.tk-sp-chiprow{order:2}
  .tk-sp-main>.tk-sp-photos{order:3}
  .tk-sp-main>#cov-sec{order:7}
  .tk-sp-items>.tk-lh{order:5}
  .tk-sp-main{padding-top:0}
  .tk-sp-main>.tk-sp-photos{margin-top:6px}
  .tk-sp-items>.tk-lh{margin-top:clamp(18px,3vw,28px)}
}

/* ---- categories ---- */
.tk-facets{list-style:none;margin:0;padding:0;border:1px solid var(--h-line);background:var(--h-surface)}
.tk-facets li+li{border-top:1px solid var(--h-line)}
.tk-fa{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:0 12px;font:400 14.5px/1.3 var(--h-font);color:var(--h-text);cursor:pointer}
.tk-fa:hover{background:var(--h-brand-soft)}
.tk-fa:focus-visible{outline:2px solid var(--h-brand);outline-offset:-2px}
.tk-fa-cb{flex:none;width:16px;height:16px;border:1.5px solid var(--h-muted)}
.tk-fa[aria-checked="true"]{background:var(--h-brand-soft)}
.tk-fa[aria-checked="true"] .tk-fa-cb{background:var(--h-brand);border-color:var(--h-brand);box-shadow:inset 0 0 0 3px var(--h-surface)}
.tk-fa-l{flex:1;min-width:0;overflow-wrap:anywhere}
.tk-fa em{font:400 13px var(--h-mono);font-style:normal;color:var(--h-muted)}
.tk-fa.is-zero{opacity:.6}
.tk-sp-sheetact{display:flex;gap:10px;margin-top:16px}
.tk-sp-sheetact .tk-btn{flex:1;min-height:48px}
.tk-sp-chiprow{display:flex;align-items:center;gap:8px;margin:10px 0 0;min-width:0}
.tk-sp-catsbtn{flex:none;min-height:44px;gap:8px}
.tk-sp-catsbtn .num{font-size:13px;color:var(--h-muted)}
.tk-sp-chips-scroll{display:flex;gap:8px;overflow-x:auto;min-width:0;flex:1;padding:2px 0;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.tk-sp-fchip{flex:none;display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 14px;font:500 14px/1 var(--h-font);color:var(--h-text);background:var(--h-surface);border:1px solid var(--h-line-strong);cursor:pointer;white-space:nowrap}
.tk-sp-fchip em{font:400 12.5px var(--h-mono);font-style:normal;color:var(--h-muted)}
.tk-sp-fchip[aria-pressed="true"]{border-color:var(--h-brand);background:var(--h-brand-soft)}
.tk-sp-fchip.is-zero{opacity:.6}
@media (min-width:1024px){.tk-sp-chiprow{display:none}}

/* ---- search and sort ---- */
.tk-sp-bar{display:flex;gap:8px;margin:10px 0 0}
.tk-sp-search{flex:1;min-width:0;position:relative;display:flex;align-items:center}
.tk-sp-sic{position:absolute;left:13px;display:flex;color:var(--h-muted);pointer-events:none}
.tk-sp-sic .h-ic{width:18px;height:18px}
.tk-sp-search input{box-sizing:border-box;width:100%;height:48px;padding:0 14px 0 40px;font:400 16px var(--h-font);color:var(--h-text);background:var(--h-surface);border:1px solid var(--h-line-strong);border-radius:0;-webkit-appearance:none;appearance:none}
.tk-sp-search input::-webkit-search-cancel-button{-webkit-appearance:none}
.tk-sp-search input:focus{outline:2px solid var(--h-brand);outline-offset:0;border-color:var(--h-brand)}
.tk-sp-sort select{box-sizing:border-box;height:48px;padding:0 34px 0 12px;font:500 14px var(--h-font);color:var(--h-text);background:var(--h-surface);border:1px solid var(--h-line-strong);border-radius:0;max-width:170px}
.tk-sp-sort select:focus-visible{outline:2px solid var(--h-brand);outline-offset:0}
@media (max-width:480px){.tk-sp-sort{flex:none;max-width:48%}.tk-sp-sort select{max-width:100%}}
.tk-hit{background:none;color:inherit;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:2px;text-decoration-color:var(--h-brand)}
.tk-sp-showing{margin:12px 0 8px;font-size:13px;color:var(--h-muted);min-height:1.4em}
.tk-sp-showing:empty{min-height:0;margin:6px 0}
.tk-sp-pill{position:sticky;top:8px;z-index:6;display:block;margin:10px auto 0;min-height:44px;padding:0 18px;font:600 14px var(--h-font);color:var(--h-brand-ink);background:var(--h-brand);border:0;border-radius:0;cursor:pointer;box-shadow:0 6px 18px -8px var(--h-shadow)}
.tk-sp-pill:focus-visible{outline:2px solid var(--h-text);outline-offset:2px}

/* ---- item rows ---- */
.tk-rows{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);border:1px solid var(--h-line);background:var(--h-surface)}
.tk-rows>li+li{border-top:1px solid var(--h-line)}
.tk-row{min-width:0;content-visibility:auto;contain-intrinsic-size:auto 64px;background:var(--h-surface)}
.tk-row-b{all:unset;box-sizing:border-box;display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:8px 12px;color:inherit;text-decoration:none;cursor:pointer}
.tk-row-b:hover{background:var(--h-brand-soft)}
.tk-row-b:focus-visible{outline:2px solid var(--h-brand);outline-offset:-2px}
.tk-th{flex:none;width:48px;height:48px;overflow:hidden;background:var(--tokay-cam);border:1px solid var(--h-line)}
.tk-th img{display:block;width:100%;height:100%;object-fit:cover}
.tk-row-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.tk-row-n{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font:500 15px/1.3 var(--h-font);overflow-wrap:anywhere}
.tk-row-s{display:flex;align-items:center;gap:6px;font:400 12.5px/1.3 var(--h-font);color:var(--h-muted)}
.tk-sp-dot{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:var(--tokay-spot)}
.tk-row-p{display:block;min-width:0;font-size:13px}
.tk-row.is-new{animation:tk-sp-new 2.4s ease-out}
@keyframes tk-sp-new{0%,35%{background:var(--h-brand-soft)}100%{background:var(--h-surface)}}
@media (prefers-reduced-motion:reduce){.tk-row.is-new{animation:none;background:var(--h-brand-soft)}}
@media (min-width:700px){
  .tk-rows{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;border:0;background:none}
  .tk-rows>li{border:1px solid var(--h-line)}
  .tk-rows>li+li{border-top:1px solid var(--h-line)}
}
@media (min-width:1280px){.tk-rows{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tk-sp-more{display:flex;justify-content:center;margin-top:16px}
.tk-sp-more .tk-btn{min-height:48px;min-width:220px}
.tk-sp-sentinel{height:1px}

/* ---- photo strip and all-photos sheet ---- */
.tk-spstrip{list-style:none;margin:0;padding:0 0 4px;display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.tk-spstrip>li{flex:none;width:136px;scroll-snap-align:start}
@media (min-width:768px){.tk-spstrip>li{width:164px}}
.tk-ph{position:relative;display:block;box-sizing:border-box;width:100%;aspect-ratio:4/3;padding:0;overflow:hidden;font:inherit;color:#fff;text-align:left;background:var(--tokay-cam);border:1px solid var(--h-line);cursor:pointer}
.tk-ph img{display:block;width:100%;height:100%;object-fit:cover}
.tk-ph:hover{border-color:var(--h-brand)}
.tk-ph:focus-visible{outline:2px solid var(--h-brand);outline-offset:2px}
.tk-ph.fresh{animation:tk-pop .4s var(--h-spring)}
.tk-ph-cap{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding:5px 8px;font:400 11.5px/1.3 var(--h-mono);color:#EAF0F5;background:rgba(10,18,26,.74)}
.tk-ph-cap .tk-age{gap:5px}
.tk-ph-cap .tk-dot{margin-top:0}
.tk-ph-all{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--h-text);background:var(--h-surface);font:500 13px var(--h-font);text-align:center}
.tk-ph-all .num{font:500 22px var(--h-mono)}
.tk-photogrid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
.tk-photogrid>li{min-width:0}
.tk-photogrid .tk-ph{aspect-ratio:4/3}
dialog.tk-sp-photosdlg{max-width:min(960px,100%)}
@media (prefers-reduced-motion:reduce){.tk-ph.fresh{animation:none}}

/* ---- the links block (src/seo.ts): small text in columns, always open, full width ---- */
.tk-sp-links{margin-top:clamp(28px,4vw,44px);padding-top:18px;border-top:1px solid var(--h-line)}
.tk-sp-links .h-label{margin:0 0 10px}
.tk-sp-linklist{list-style:none;margin:0;padding:0;column-count:2;column-gap:20px;font-size:13px;line-height:1.35}
@media (min-width:768px){.tk-sp-linklist{column-count:3}}
@media (min-width:1024px){.tk-sp-linklist{column-count:5;column-gap:28px}}
.tk-sp-linklist li{break-inside:avoid}
.tk-sp-linklist a{display:block;padding:7px 0;color:var(--h-muted);text-decoration:none;overflow-wrap:anywhere}
.tk-sp-linklist a:hover{color:var(--h-brand);text-decoration:underline}
.tk-sp-linklist a:focus-visible{outline:2px solid var(--h-brand);outline-offset:1px}
@media (pointer:coarse){.tk-sp-linklist a{padding:12px 0}}
