/* First-login tour (tour.js): one card over the account page. Tokens from DESIGN.md only. */
.tour { width: min(720px, calc(100% - 2 * var(--gutter))); max-width: none; max-height: calc(100dvh - 2 * var(--gutter));
  margin: auto; padding: 20px 24px 24px; border: 0; border-radius: var(--r-tile); background: var(--card); color: var(--foreground);
  overflow-y: auto; overscroll-behavior: contain; }
.tour::backdrop { background: rgb(0 0 0 / .72); }
/* The card opens with focus on Next, so the site-wide 2px white ring read as harsh here (James, 6 Nov): a thin, dimmer ring that still shows keyboard focus. */
.tour button:focus-visible { outline: 1px solid color-mix(in srgb, var(--foreground) 45%, transparent); outline-offset: 3px; }
.tour .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tour-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.tour-skip { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.tour-skip:hover { color: var(--foreground); }
.tour-shot { margin: 0 0 20px; border-radius: 10px; overflow: hidden; background: #000; aspect-ratio: 5 / 3; }
.tour-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.tour-shot.in { animation: tour-in .24s ease-out; }
@keyframes tour-in { from { opacity: 0; } to { opacity: 1; } }
.tour .title { font-size: 22px; margin: 0 0 8px; }
.tour .muted { margin: 0; font-size: 15px; min-height: 3.1em; }
.tour-foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 24px; }
.tour-arrow { width: 44px; padding: 0; }
.tour-arrow:disabled { opacity: .35; cursor: default; }
.tour-arrow:disabled:hover { border-color: var(--border); }
.tour-dots { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 8px; }
.tour-dots li { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.tour-dots li[data-on] { background: var(--foreground); }
.tour-again { min-height: 44px; padding: 0; margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border); }
.tour-again:hover { color: var(--foreground); }
@media (max-width: 640px) {
  .tour { padding: 16px 16px 20px; }
  .tour-shot { aspect-ratio: 1 / 1; }
  .tour .title { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .tour-shot.in { animation: none; } }
