/* The setup guide's look, shared by the page and the editor's preview (everything is inside .tutorial). */
.tutorial {
  --bg: #12151f; --card: #191d2b; --line: #272c3e; --text: #e9ecf3; --muted: #959cb0; --blue: #4fb3f6; --blue-hover: #74c3f8; --yellow: #ffd166;
  color: var(--text); font-family: "Segoe UI", system-ui, -apple-system, sans-serif; line-height: 1.6; -webkit-font-smoothing: antialiased;
  width: 100%; max-width: 50rem; margin: 0 auto; padding: 3rem 1.5rem 3rem; box-sizing: border-box;
}
.tutorial *, .tutorial *::before, .tutorial *::after { box-sizing: border-box; }
.tutorial a { color: var(--blue); }
.tutorial a:hover { color: var(--blue-hover); }

.tutorial header { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tutorial header .logo { width: 4.5rem; height: 4.5rem; margin-bottom: .75rem; }
.tutorial h1 { margin: 0; font-size: 1.6rem; font-weight: 600; }
.tutorial .intro { width: 100%; color: var(--muted); }
.tutorial .intro p { margin: .4rem 0 0; }

.tutorial .toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin-top: 1.5rem; text-align: left; }
.tutorial .toc a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: .6rem; padding: .9rem 1.25rem; text-decoration: none; color: var(--blue); font-weight: 600; transition: border-color .15s; }
.tutorial .toc a:hover { border-color: var(--blue); }

.tutorial section { margin-top: 2.5rem; background: var(--card); border: 1px solid var(--line); border-radius: .6rem; padding: 1.4rem 2rem 1.5rem; scroll-margin-top: 1.5rem; }
.tutorial h2 { margin: 0; padding-bottom: .8rem; border-bottom: 1px solid var(--line); font-size: 1.2rem; font-weight: 600; color: var(--blue); }
.tutorial h3 { margin: 1.6rem 0 .5rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tutorial p { margin: .9rem 0 0; }
.tutorial hr { margin: 1.5rem 0 0; border: 0; border-top: 1px solid var(--line); }

.tutorial ol { margin: .6rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.tutorial ol > li { position: relative; counter-increment: step; padding: 0 0 0 2.4rem; }
.tutorial ol > li + li { margin-top: 1rem; }
.tutorial ol > li::before { content: counter(step); position: absolute; left: 0; top: .05rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(79, 179, 246, .15); color: var(--blue); font-weight: 600; font-size: .85rem; display: flex; align-items: center; justify-content: center; }
.tutorial li > p:first-child { margin-top: 0; }
.tutorial li > p { margin-top: .4rem; }
.tutorial ul { margin: .5rem 0 0; padding-left: 1.1rem; }
.tutorial ul li + li { margin-top: .2rem; }

.tutorial .ui { display: inline-block; padding: 0 .4rem; border-radius: .25rem; background: #232839; border: 1px solid var(--line); font-size: .88em; white-space: nowrap; }
.tutorial code { padding: .05rem .35rem; border-radius: .25rem; background: #232839; font-family: Consolas, "Cascadia Mono", monospace; font-size: .88em; }
.tutorial .note { margin-top: 1.1rem; padding: .7rem 1rem; border-left: 3px solid var(--yellow); background: rgba(255, 209, 102, .07); border-radius: 0 .35rem .35rem 0; font-size: .93rem; }
.tutorial .note strong { color: var(--yellow); }
.tutorial .note > p:first-child { margin-top: 0; }

.tutorial .figure { display: block; margin: .8rem 0 0; }
.tutorial .shot { display: block; max-width: 100%; height: auto; border-radius: .4rem; border: 1px solid var(--line); cursor: zoom-in; }
.tutorial .caption { display: block; margin-top: .35rem; color: var(--muted); font-size: .85rem; }

.tutorial footer { margin-top: 2.5rem; text-align: center; color: var(--muted); font-size: .9rem; }

/* A picture, enlarged. */
.lightbox { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: rgba(6, 8, 14, .88); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: .4rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }

@media (max-width: 40rem) {
  .tutorial { padding: 2rem 1rem; }
  .tutorial section { padding: 1.1rem 1.1rem 1.2rem; }
  .tutorial .ui { white-space: normal; }
}
