/* City Wallpaper setup (wallpaper-setup.mjs): the app's numbered steps and its tips, what to check,
 * the site's own recording standing open, and other videos whose players load only when tapped.
 * On guide.css's sections, in the site's tokens.
 * In Arabic only the words run right to left; the steps, numbers and rows keep their places. */
.setup-header { padding: clamp(2.5rem, 7vw, 5rem) 0 2rem; }
.setup-header h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 18ch; }
.setup-page .guide-section > .setup-body, .setup-page .guide-section > ol, .setup-page .guide-section > ul { min-width: 0; }
.setup-where { margin-bottom: 1.5rem; font-family: var(--font-display); font-size: var(--text-small); font-weight: 600; letter-spacing: 0.02em; color: var(--color-accent-ink); }
.setup-page .guide-section :is(.setup-steps, .setup-tips, .setup-checks, .setup-video-list) { list-style: none; margin: 0; padding: 0; display: grid; }
.setup-page .guide-section .setup-steps { gap: 1.35rem; }
.setup-steps li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0.9rem; align-items: start; max-width: none; }
.setup-number { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-ink); color: var(--color-on-ink); font-family: var(--font-display); font-size: 0.9375rem; font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1; }
.setup-page .guide-section .setup-steps p { font-size: var(--text-lead); line-height: 1.5; padding-top: 0.15rem; max-width: 60ch; }
.setup-page .guide-section .setup-tips { gap: 0; margin-top: 2rem; }
.setup-tips li, .setup-checks li { border-top: 1px solid var(--color-rule); padding-block: 0.9rem; max-width: none; }
.setup-page .guide-section .setup-tips p { color: var(--color-muted); font-size: 0.9375rem; line-height: 1.6; }
.setup-page .guide-section .setup-checks { gap: 0; }
.setup-page .guide-section .setup-checks p { line-height: 1.55; }
.setup-video { border-top: 1px solid var(--color-rule); max-width: none; }
.setup-video-play { display: flex; align-items: center; gap: 1rem; min-height: 64px; padding-block: 0.75rem; text-decoration: none; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; line-height: 1.35; }
.setup-video-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--color-accent); color: var(--color-on-accent); transition: transform var(--duration-fast) var(--ease-out); }
.setup-video-icon svg { margin-left: 2px; }
@media (hover: hover) { .setup-video-play:hover .setup-video-title { color: var(--color-accent-ink); text-decoration: underline; text-underline-offset: 0.25em; } }
.setup-video-play:active .setup-video-icon { transform: scale(0.94); }
.setup-video-play[aria-expanded="true"] .setup-video-icon { background: var(--color-ink); color: var(--color-on-ink); }
.setup-video-frame { width: min(100%, calc(78svh * var(--setup-width, 9) / var(--setup-height, 16))); aspect-ratio: var(--setup-width, 9) / var(--setup-height, 16); margin-bottom: 1rem; overflow: hidden; border-radius: var(--radius-gallery); background: var(--color-art-night); animation: setup-video-in var(--duration-enter) var(--ease-out); }
.setup-video-frame :is(iframe, video) { display: block; width: 100%; height: 100%; border: 0; }
.setup-video-frame video { object-fit: contain; background: var(--color-art-night); }
.setup-video-open { padding-top: 1rem; }
.setup-video-open .setup-video-frame { margin-bottom: 0; }
@keyframes setup-video-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .setup-video-frame { animation: none; } .setup-video-icon { transition: none; } }
:lang(ar) .setup-page :is(li, .setup-video-title) { unicode-bidi: plaintext; }
:lang(ar) .setup-where { letter-spacing: normal; }
@media (max-width: 760px) {
  .setup-header { padding-top: 2.25rem; padding-bottom: 1.25rem; }
  .setup-page .guide-section .setup-steps p { font-size: 1.0625rem; }
}
