/* Mobile legibility and touch targets (2026-10-06 red-team). 2D pages only; the 3D viewer is untouched. */
@media (max-width:640px){
 .local-context{font-size:12px;line-height:1.5}
 .local-context a{min-height:44px;display:inline-flex;align-items:center}
 .brand span,.sample-label{font-size:12px}
 .return-nav a{font-size:13px;min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;padding-inline:4px}
 .entry-actions a,.entry-actions button{min-height:44px}
}

/* 3D: photo tour as the primary mobile control; walking as secondary */
.walk-controls{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.walk-controls .photo-tour{display:flex;align-items:center;justify-content:space-between;gap:8px}
.walk-controls .photo-tour button{flex:1 1 0;min-height:44px;font-size:15px;font-weight:600;color:var(--accent-ink,#243b31);background:#fff;border:1px solid var(--line-strong,#cfd8cf);border-radius:22px}
.walk-controls .photo-tour button:disabled{opacity:.5}
.walk-controls #tour-count{min-width:56px;text-align:center;font-size:13px;color:#5b5c53;font-variant-numeric:tabular-nums}
.walk-controls .walk-row{display:flex;gap:4px;justify-content:center}
.walk-controls .walk-row button{min-height:40px;font-size:13px;padding-inline:10px}
@media(max-width:640px){
 .immersive-view .walk-controls{width:calc(100% - 24px);max-width:420px;padding:8px}
 .walk-controls .walk-row button{flex:1 1 0;padding-inline:4px;font-size:12px}
 /* 2D home: make the two entrances read as buttons, photo first */
 .entry-actions{flex-direction:column;align-items:stretch;gap:10px}
 .entry-actions a.primary,.entry-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 16px;border-radius:12px;background:var(--accent,#3d5747);color:#fff;font-size:15px;font-weight:600;text-decoration:none;border:0}
 .entry-actions a span{display:inline;margin-left:6px}
 .cover-copy .entry-actions button,.archive-cover .entry-actions button,.entry-actions button#enter-3d{min-height:46px;padding:10px 16px;border:1px solid var(--line-strong,#a6b2a5);border-bottom:1px solid var(--line-strong,#a6b2a5);border-radius:12px;background:var(--card,#fff);color:var(--accent-ink,#3d5747);font-size:14px;width:100%}
 .cover-copy .entry-actions a span,.archive-cover .entry-actions a span{display:inline}
 #app-status:not(.error){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
}

/* Caption chip sits above the (now taller) control tray instead of covering it */
.immersive-view #current-artwork,.immersive-view .wall-letter-controls,.immersive-view .wall-media-controls{bottom:calc(var(--tray-height,102px) + 20px + env(safe-area-inset-bottom))}
.immersive-view #current-artwork{max-width:min(320px,calc(100% - 24px))}
@media(max-width:640px){.immersive-view #current-artwork{left:12px;width:calc(100% - 24px)}}
