/* 探索地圖: the picture cards (landing/explore-cards.js). The PM approved cards here (idea/explore-idea.png), an agreed
   exception to "edges, not boxes". Flat, white, a hairline, 12px corners; the topic picture on its soft tile, one big fact
   in the round heavy type, the real title on two lines at most, one small line. Sensitive stories: grey picture, grey fact. */
.xc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px}
.xc{display:flex;flex-direction:column;min-width:0;border-radius:var(--r-m);background:#fff;border:1px solid var(--line);color:var(--ink);text-decoration:none;overflow:hidden;transition:border-color .15s ease}
.xc:hover{border-color:var(--cobalt)}
.xc:focus-visible{outline-offset:2px;border-radius:var(--r-m)}
.xc-pic{position:relative;display:flex;align-items:center;justify-content:center;flex:none;height:116px;background:var(--sky)}
/* calm card: the grey topic tile (story-icons.js grey palette) sits on a white band with a hairline, so a list with many
   sensitive stories stays light and tidy, clearly quieter than a normal card, never a wall of grey slabs */
.xc.grey .xc-pic{background:#fff;box-shadow:inset 0 -1px 0 var(--line)}
.xc.grey .xc-pic .cat-ic{width:104px;height:104px}
.xc.grey.lead .xc-pic{box-shadow:none}
.ex-strip .xc.grey .xc-pic .cat-ic{width:76px;height:76px}
.xc-pic .cat-ic{width:100px;height:100px}
.xc-b{display:flex;flex-direction:column;min-width:0;padding:12px 16px 14px}
.xc-f{font-family:var(--round);font-weight:900;font-size:28px;line-height:1.15;letter-spacing:.01em;color:var(--cobalt);font-variant-numeric:tabular-nums}
.xc.grey .xc-f{color:var(--ink-soft)}
.xc-t{margin:6px 0 0;font-family:var(--ui);font-weight:700;font-size:17px;line-height:1.45;letter-spacing:0;color:var(--ink);text-wrap:pretty;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.xc:hover .xc-t{color:var(--cobalt-deep)}
.xc-m{margin-top:6px;font-size:14px;font-weight:600;color:var(--ink-soft);font-variant-numeric:tabular-nums}
.xc-tag{position:absolute;left:10px;top:10px;padding:1px 8px;border-radius:var(--r-xs);background:#fff;font-size:14px;font-weight:700;line-height:1.5;color:var(--ink)}
/* the lead card: the place's first story, large and lying down */
.xc.lead{grid-column:1/-1;flex-direction:row;align-items:center;gap:20px;padding:13px}
.xc.lead .xc-pic{width:124px;height:124px;border-radius:10px}
.xc.lead .xc-pic .cat-ic{width:110px;height:110px}
.xc.lead .xc-b{padding:0}
.xc.lead .xc-f{font-size:38px}
.xc.lead .xc-t{font-size:20px}
.xc-more,.xc-all{margin-top:6px;font-size:15px}
.xc-sk{display:block;height:250px;border-radius:var(--r-m)}

/* phone: one card and a peek of the next, snapping; small dots under it */
.ex-strip{display:flex;gap:12px;margin:0 -16px;padding:2px 16px 4px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 16px;overscroll-behavior-x:contain;touch-action:pan-x;scrollbar-width:none}
.ex-strip::-webkit-scrollbar{display:none}
.ex-strip>*{flex:none;scroll-snap-align:start}
.ex-strip .xc{width:min(300px,calc(100% - 56px))}
.ex-strip .xc-pic{height:84px}
.ex-strip .xc-pic .cat-ic{width:74px;height:74px}
.ex-strip .xc-b{padding:10px 14px 12px}
.ex-strip .xc-f{font-size:24px}
.ex-strip .xc-t{margin-top:4px;font-size:15px}
.ex-strip .xc-m{margin-top:4px}
.ex-strip .xc-sk{width:min(300px,calc(100% - 56px));height:196px}
.ex-strip .ex-empty,.ex-strip .ex-none,.ex-strip .ex-err{width:100%;margin:0}
.ex-dots{display:flex;align-items:center;justify-content:center;gap:6px;height:18px;margin-top:4px;font-size:14px;font-weight:700;color:var(--ink-soft);font-variant-numeric:tabular-nums}
.ex-dots i{width:6px;height:6px;border-radius:3px;background:var(--line-strong);transition:width .2s var(--out),background-color .2s}
.ex-dots i.on{width:18px;background:var(--cobalt)}
@media (prefers-reduced-motion:reduce){ .ex-dots i{transition:none} }
@media (max-width:560px){
  .xc.lead{gap:14px;padding:12px}
  .xc.lead .xc-pic{width:96px;height:96px}
  .xc.lead .xc-pic .cat-ic{width:86px;height:86px}
  .xc.lead .xc-f{font-size:30px}
  .xc.lead .xc-t{font-size:17px}
}
