/* v-explore: Explore hub, Canton Fair category views (UI-B) and Getting around (EXPLORE-HUB). Tokens from app.css only. */
.explore-search{margin:4px 0 14px}

/* hub tiles */
.explore-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.explore-tile{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-width:0;min-height:156px;padding:16px;text-align:left;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--shadow);transition:transform .15s var(--ease)}
.explore-tile:active{transform:scale(.985)}
.explore-tile.is-wide{grid-column:1/-1;flex-direction:row;align-items:center;gap:14px;min-height:112px}
.explore-tile__ic{flex:none;width:46px;height:46px;border-radius:16px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}
.explore-tile__ic svg{width:25px;height:25px}
.explore-tile__x{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;align-self:stretch}
.explore-tile.is-wide .explore-tile__x{align-self:center}
.explore-tile__t{font-size:18px;font-weight:720;letter-spacing:-.015em;line-height:1.2}
.explore-tile__s{color:var(--muted);font-size:13.5px;line-height:1.35}
.explore-tile__n{margin-top:auto;padding-top:8px;color:var(--fg2);font-size:13.5px;font-weight:650;line-height:1.3}
.explore-tile__n:empty{display:none}
.explore-tile.is-wide .explore-tile__n{margin-top:0;padding-top:6px}
.explore-note{margin:14px 4px 0;color:var(--muted);font-size:13.5px;line-height:1.45;text-align:center}
.explore-seg{margin:0 0 12px}
.explore-meta{margin:0 4px 12px;color:var(--muted);font-size:13.5px;line-height:1.4}
.explore-hint{margin:10px 4px 0;color:var(--muted);font-size:12.5px;line-height:1.45}
.explore-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:600px){.explore-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:900px){.explore-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

.explore-card{display:flex;flex-direction:column;text-align:left;min-width:0;background:var(--surface);border-radius:var(--r-card);box-shadow:var(--shadow);overflow:hidden;transition:transform .15s var(--ease)}
.explore-card:active{transform:scale(.985)}
.explore-card.is-zero{opacity:.55}
.explore-card__b{display:flex;flex-direction:column;gap:2px;flex:1;padding:10px 12px 13px;min-width:0}
.explore-card__t{font-weight:680;font-size:15px;line-height:1.25;letter-spacing:-.005em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.explore-card__cn{color:var(--muted);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.explore-card__n{margin-top:auto;padding-top:6px;color:var(--fg2);font-size:13px;font-weight:620}

/* reference photo, with a tinted tile when the image is missing */
.explore-photo{position:relative;display:grid;place-items:center;aspect-ratio:1/1;background:var(--surface3);color:var(--accent);overflow:hidden}
.explore-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .25s}
.explore-photo.is-in img{opacity:1}
.explore-photo.is-ph{background:var(--accent-soft)}
.explore-photo svg{width:34%;height:34%;opacity:.75}
.explore-photo.sm{flex:none;width:48px;height:48px;aspect-ratio:auto;border-radius:13px;box-shadow:inset 0 0 0 .5px var(--hair2)}
.explore-photo.sm svg{width:48%;height:48%}

/* category view */
.explore-item{background:var(--surface)}
.explore-item .row{min-height:68px}
/* overflow-x:auto clips the chips' extended hit area, so the strip carries 6px of padding top and bottom to keep a 44px tap height */
.explore-l3{display:flex;gap:8px;overflow-x:auto;padding:6px 14px 8px 74px;margin-top:-4px;scrollbar-width:none}
.explore-l3::-webkit-scrollbar{display:none}
.explore-l3 .chip{position:relative;height:32px;padding:0 12px;font-size:13.5px;font-weight:580;background:var(--surface2)}
.explore-l3 .chip::after{content:"";position:absolute;left:-2px;right:-2px;top:-6px;bottom:-6px}
.explore-l3 .chip:active{background:var(--accent-soft);color:var(--accent)}

/* Getting around and phrases */
.explore-field{margin:2px 0 4px}
#explore-q{font-size:16px}
#explore-q::-webkit-search-cancel-button,#explore-q::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
.explore-clear{flex:none;width:44px;height:44px;margin-right:-10px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}
.explore-clear svg{width:18px;height:18px}
.explore-clear:active{background:var(--accent-soft)}
.explore-phrases .explore-hint{margin-top:0;margin-bottom:8px}
.explore-ph{display:flex;align-items:center;background:var(--surface);min-height:64px}
.explore-ph__open{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:10px 4px 10px 14px;text-align:left;min-height:64px}
.explore-ph__open:active{background:var(--surface2)}
.explore-ph__m{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.explore-ph__t{font-size:15px;font-weight:620;line-height:1.3}
.explore-ph__cn{font-size:16px;color:var(--fg2);line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.explore-ph__copy{flex:none;width:44px;height:44px;margin:0 4px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}
.explore-ph__copy svg{width:20px;height:20px}
.explore-ph__copy:active{background:var(--accent-soft)}
.explore-drv{display:flex;flex-direction:column;gap:8px;padding:6px 0 0}
.explore-drv__cn{margin:0;font-size:40px;line-height:1.25;font-weight:780;overflow-wrap:anywhere;text-align:center}
.explore-drv__cn.long{font-size:30px}
.explore-drv__en{margin:0;color:var(--muted);font-size:15px;text-align:center}
.explore-drv__a{margin-top:16px}
.explore-ir{align-items:flex-start;padding:13px 14px}
.explore-ir>.row__ic{margin-top:1px}
.explore-ir__t{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:15.5px;font-weight:640;line-height:1.3;overflow-wrap:anywhere}
.explore-ir__p{margin:3px 0 0;color:var(--fg2);font-size:14.5px;line-height:1.45;overflow-wrap:anywhere}
.explore-ir__n{margin:4px 0 0;color:var(--muted);font-size:13.5px;line-height:1.45;overflow-wrap:anywhere}
.explore-al{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);font-weight:760;font-size:16px;margin-top:1px}
.explore-more{margin-top:4px}
.explore-more summary{display:flex;align-items:center;min-height:44px;color:var(--accent);font-weight:620;font-size:14px;cursor:pointer}
.explore-more p{margin:0 0 8px;font-size:16px;line-height:1.5;color:var(--fg)}
.explore-est{margin-left:2px}

@media (prefers-reduced-motion:reduce){.explore-card,.explore-photo img,.explore-tile{transition:none}}
