/* /scan-preview/ on top of style.css: lockup, month + day buttons, sticky rank bar, collapsed sources. */
.lockup { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; text-decoration: none; }
.lk-mark { width: 34px; height: 34px; flex: none; }
.lk-word { font: 400 24px/1 var(--serif); letter-spacing: -0.01em; }
.bar nav a { display: inline-flex; align-items: center; min-height: 48px; }
.foot .lockup { margin: 0 auto 6px; }

.scan .hero-art img { height: 96px; object-position: 60% 40%; }
.scan .hero-art { margin-bottom: 6px; }
.scan h1 { font-size: clamp(36px, 9.6vw, 72px); max-width: 12ch; margin-bottom: 2px; }

.mpick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.mo { min-height: 48px; padding: 0; border-radius: 12px; background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream2); font: 700 16px/1 var(--sans); }
.mo:hover { background: var(--green2); }
.mo[aria-pressed=true] { background: var(--cream); color: var(--ink); box-shadow: none; }
.dpick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dy { min-height: 48px; padding: 0; border-radius: 10px; font: 700 19px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.dy.s0, .dy.s1 { color: var(--cream); }
.dy:hover { filter: brightness(1.08); }
.dy[aria-pressed=true] { box-shadow: 0 0 0 3px var(--green), 0 0 0 6px var(--cream); position: relative; z-index: 1; }
.dy:disabled { background: transparent; color: var(--green2); box-shadow: inset 0 0 0 2px var(--green2); cursor: default; }
.dkey { display: flex; align-items: center; gap: 4px; margin: 10px 0 18px; font-size: 14px; color: var(--cream2); }
.dkey i { width: 18px; height: 12px; border-radius: 2px; }
.dkey span:first-child { margin-right: 6px; } .dkey span:last-child { margin-left: 6px; }
.scan .pick label { font-size: 14px; }

.vs-art { float: right; width: 84px; height: 84px; margin: 0 0 8px 14px; border-radius: 14px; object-fit: cover; }

/* sticky rank bar (phone and tablet): date, rank, Share */
.sbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); color: var(--ink); box-shadow: 0 -10px 24px -12px rgba(0, 0, 0, .6); border-top: 3px solid var(--coral); }
.sbar p { margin: 0; }
.sb-l { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.sb-d { font: 400 20px/1.1 var(--serif); }
.sb-r { display: flex; align-items: baseline; gap: 6px; }
.sb-no, .sb-of { font: 700 15px/1 var(--sans); color: var(--ink2); }
#sb-r { font: 400 40px/1 var(--serif); color: var(--coral-ink); font-variant-numeric: lining-nums; }
.sb-acts { display: flex; align-items: center; gap: 12px; }
.sb-share { min-height: 52px; padding: 0 26px; font-size: 19px; }
.sb-more { display: inline-flex; align-items: center; min-height: 48px; font-weight: 600; font-size: 15px; }
.scan ~ .foot { padding-bottom: 110px; }
html:not(.js) .sbar, html:not(.js) .mpick, html:not(.js) .dpick, html:not(.js) .dkey { display: none; }

.billion summary, .data summary { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; }
.ic { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--coral); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.data details { border-top: 1px solid var(--green2); border-bottom: 1px solid var(--green2); padding: 6px 0; }
.data summary { font: 400 24px/1.3 var(--serif); padding: 10px 0; }

@media (min-width: 900px) {
  .scan .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); grid-template-areas: "ask card" "vs share"; align-items: start; column-gap: 48px; }
  .scan .hero-art { display: none; }
  .scan .hero.locked { grid-template-areas: "ask card" "vs card" "share card"; }
  .scan h1 { font-size: clamp(48px, 5.4vw, 72px); max-width: 14ch; }
  .mo { min-height: 48px; }
  .dy { min-height: 52px; }
  .sbar { display: none; }
  .scan ~ .foot { padding-bottom: 24px; }
}
/* 48px taps everywhere on the preview (Dash 9:52 tap rule) */
@media (max-width: 899px) { .toy { margin-inline: -8px; } .dpick { gap: 3px; } .dpick button { min-width: 48px; } }
.scan .c-acts button, .scan #vs-chal, .scan .vs-form button, .scan button { min-height: 48px; }
.scan .lists h3 a, .scan .lists li a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 2px; min-width: 48px; }
.scan .lists li { padding: 0; }
.scan .chips a, .scan .tags a, .scan .grid-picks a { display: inline-flex; align-items: center; min-height: 48px; }
.foot a { display: inline-flex; align-items: center; min-height: 48px; }

.scan .hero.locked .hero-art { display: none; }
.vs .pick { clear: both; }
/* Short page (baseline #7, <= 4 screens at 390): the map's heat grid is that section's graphic, so the list art goes on phones; tighter collapsed blocks. */
@media (max-width: 899px) { .scan .lists .crowd-art, .scan .lists .rare-art { display: none; } }
.scan .billion, .scan .data { padding-top: 8px; padding-bottom: 8px; margin-top: 0; }
@media (max-width: 899px) { .scan .lists { gap: 12px; } .scan .lists li { gap: 8px; } .scan .lists .v { font-size: 14px; } .scan .lists li a { padding: 0 4px 0 0; } }

/* Challenge link chrome (Shears cut 2): one-line heading, compact locked box, no dek/art/help, so the whole #toy is in the first screen above the sticky bar. */
.scan .hero.locked h1 { font-size: 30px; max-width: none; margin-bottom: 6px; }
.scan .hero.locked #pick label { font-size: 14px; margin-bottom: 2px; }
.scan .hero.locked #when { min-height: 48px; padding-block: 6px; }
.scan .hero.locked #when-help, .scan .hero.locked .vs-art, .scan .hero.locked .vs-dek { display: none; }
.scan .hero.locked .vs h2 { font-size: 26px; margin: 10px 0 8px; }
.scan .hero.locked .vs .toy { margin-bottom: 12px; }
@media (min-width: 900px) { .scan .hero.locked h1 { font-size: 44px; } }

#vsform { scroll-margin-top: 16px; }

/* Phone: sticky rank bar covers the last slice of the viewport. Pad the scan page by the bar's height
   so the typed-date row can sit clear of it (Dash 11/27). --sbar-h is set from #sbar's box. */
@media (max-width: 899px) {
  .scan { padding-bottom: var(--sbar-h, 85px); }
  .scan ~ .foot { padding-bottom: var(--sbar-h, 85px); }
}
