/* The guides (/guides): step-by-step help with screenshots of the app.
   Colours come from the tokens in /styles.css only. */

.guide-hero { padding: 56px 0 32px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--primary); font-weight: 600; }
.guide-hero h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.08; font-weight: 800; }
.guide-hero .lede { margin-top: 14px; max-width: 680px; font-size: 18px; color: var(--text-2); }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* Contents beside the steps on wide screens, above them on narrow ones. */
.guide-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding: 48px 0 24px; }
.toc { position: sticky; top: 92px; align-self: start; font-size: 14px; }
.toc h2 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li { counter-increment: toc; }
.toc ol { counter-reset: toc; }
.toc a { display: flex; gap: 8px; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); }
.toc a::before { content: counter(toc); color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1em; }
.toc a:hover { color: var(--text); border-left-color: var(--primary); }

.steps-list { counter-reset: step; min-width: 0; }
.step { counter-increment: step; padding-bottom: 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; margin-bottom: 0; }
.step > h2 { display: flex; align-items: center; gap: 14px; font-size: 26px; line-height: 1.2; font-weight: 750; }
.step > h2::before {
  content: counter(step);
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary-soft); color: var(--on-primary-soft);
  font-size: 16px; font-weight: 700; letter-spacing: 0;
}
.step p, .step ul, .step ol { margin-top: 12px; color: var(--text-2); max-width: 720px; }
.step ul, .step ol { padding-left: 22px; }
.step li { margin-top: 6px; }
.step b, .step strong { color: var(--text); font-weight: 600; }
.step a { color: var(--primary); font-weight: 600; }
.step a:hover { text-decoration: underline; }

.ui { font-weight: 600; color: var(--text); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; white-space: nowrap; font-size: .94em; }

.shot { margin: 22px 0 0; }
.shot img {
  width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); background: var(--surface);
}
.shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.shot.phone { max-width: 300px; }
.shot.phone img { border-radius: 22px; }
.shot.small { max-width: 360px; }
.shot-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 300px)); gap: 24px; margin-top: 22px; }
.shot-pair .shot { margin: 0; }

.callout {
  display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; max-width: 720px;
  border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-2); font-size: 15px;
}
.callout .i { color: var(--primary); margin-top: 2px; }
.callout.warn { border-left-color: var(--accent); }
.callout.warn .i { color: var(--accent); }

.guide-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 8px 0 72px; }
.guide-next a {
  display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); transition: border-color .15s, transform .15s;
}
.guide-next a:hover { border-color: var(--primary); transform: translateY(-1px); }
.guide-next small { display: block; color: var(--muted); font-size: 13px; }
.guide-next b { display: block; margin-top: 4px; font-size: 17px; }
.guide-next .next { grid-column: 2; text-align: right; }

/* The hub */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 48px 0 80px; }
.guide-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); transition: border-color .15s, transform .15s;
}
.guide-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.guide-card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-bottom: 1px solid var(--line); }
.guide-card div { padding: 18px 20px 20px; }
.guide-card .n { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .04em; text-transform: uppercase; }
.guide-card h2 { margin-top: 6px; font-size: 21px; line-height: 1.25; }
.guide-card p { margin-top: 8px; color: var(--text-2); font-size: 15px; }

@media (max-width: 900px) {
  .guide-body { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 28px; }
  .toc { position: static; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .step > h2 { font-size: 22px; }
  .guide-next { grid-template-columns: 1fr; }
  .guide-next .next { grid-column: 1; }
}
