/* User guide pages (/guide*.html). Uses the site's tokens from style.css, so light and dark follow the header toggle. */

.guide-crumb { margin: 0 0 12px; font-size: 0.95rem; color: var(--muted); }
.guide-crumb a { color: var(--muted); }
.guide-purpose { font-size: 1.18rem; color: var(--muted); margin-top: 0.4em; }
.guide-note { font-size: 0.95rem; color: var(--muted); }

/* Where each task's video goes: a 16:9 frame. */
.guide-video { margin: 28px 0 8px; }
.guide-video-frame {
  aspect-ratio: 16 / 9; display: grid; place-content: center; gap: 4px; text-align: center; padding: 16px;
  background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted);
}
.guide-video-frame p { margin: 0; }
.guide-video video, .guide-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }

/* Numbered steps: one action per line, with a round number. */
.guide ol.guide-steps { list-style: none; counter-reset: step; padding: 0; margin: 14px 0 18px; }
.guide ol.guide-steps > li { counter-increment: step; position: relative; padding: 2px 0 0 44px; margin-bottom: 14px; min-height: 30px; }
.guide ol.guide-steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.92rem;
  background: var(--accent); color: var(--accent-ink);
}

.guide-tip { background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; font-size: 0.98rem; }
.guide-tip::before { content: "Tip: "; font-weight: 700; }

.guide kbd {
  font: inherit; font-size: 0.88em; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px;
  border-radius: 6px; background: var(--bg-soft); white-space: nowrap;
}
.guide code { font-size: 0.92em; }

/* Index: one card per task. */
.guide-list { list-style: none; padding: 0 !important; display: grid; gap: 10px; }
.guide-list li { margin: 0; }
/* Translucent lime (the brand lime #c9ee4f), so the page shows through: forest text on the white page, light text on the dark one. */
.guide-list a {
  display: grid; gap: 4px; padding: 16px 20px; border: 1px solid rgba(201, 238, 79, 0.55); border-radius: 12px;
  color: #0f3d33; text-decoration: none; background: rgba(201, 238, 79, 0.2);
}
.guide-list a:hover, .guide-list a:focus-visible { background: rgba(201, 238, 79, 0.34); border-color: #3fae5a; }
.guide-list strong { font-size: 1.08rem; font-weight: 700; color: #0f3d33; }
.guide-list span { color: #2c4a3e; font-size: 0.98rem; line-height: 1.5; }
:root[data-theme="dark"] .guide-list a { background: rgba(201, 238, 79, 0.14); border-color: rgba(201, 238, 79, 0.4); }
:root[data-theme="dark"] .guide-list a:hover, :root[data-theme="dark"] .guide-list a:focus-visible { background: rgba(201, 238, 79, 0.24); border-color: #c9ee4f; }
:root[data-theme="dark"] .guide-list strong { color: #ffffff; }
:root[data-theme="dark"] .guide-list span { color: #e3eee6; }
.guide .contact-card { margin-top: 2.4em; }

/* Previous and next. */
.guide-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--line); }
.guide-pager a { display: grid; gap: 2px; max-width: 48%; text-decoration: none; font-weight: 650; }
.guide-pager a span { font-size: 0.85rem; font-weight: 400; color: var(--muted); }
.guide-pager .next { margin-left: auto; text-align: right; }

@media (max-width: 560px) {
  .guide ol.guide-steps > li { padding-left: 40px; }
  .guide-pager { flex-direction: column; }
  .guide-pager a { max-width: none; }
  .guide-pager .next { text-align: left; margin-left: 0; }
}

/* Screenshots of a step, taken from the app. */
.guide-shot { margin: 18px 0 26px; }
.guide-shot img {
  display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(10, 32, 26, 0.06), 0 8px 24px rgba(10, 32, 26, 0.08); background: #fff;
}
.guide-shot figcaption { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }
.guide-shot a { display: block; }
.guide-shot.narrow img { max-width: 340px; }
