/* The footer on every page, and the /status and /help pages (on top of style.css). */

.ver {
  max-width: 460px;
  margin: 0 auto;
  padding: 0 16px max(16px, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  opacity: .85;
}
.ver a { color: inherit; }
.ver bdi { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 11px; }

.page { max-width: 640px; }
.page h2 { font-size: 18px; }
.page p, .page li { margin: 0 0 8px; }
.page ul, .page ol { padding-inline-start: 22px; margin: 0 0 8px; }
.page a, .back { color: var(--accent); }
.back { font-size: 14px; }

/* ---------- /status ---------- */
.state { display: flex; align-items: center; gap: 12px; }
.state .dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.state.bad .dot { background: var(--live); box-shadow: 0 0 0 5px var(--live-soft); }
.state.unknown .dot { background: var(--muted); box-shadow: 0 0 0 5px var(--line); }
.state b { font-size: 20px; font-weight: 800; }
.state.bad b { color: var(--live); }
.checked { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.parts { list-style: none; padding: 0; margin: 0; }
.parts li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.parts li:first-child { border-top: 0; }
.parts .what { display: flex; flex-direction: column; min-width: 0; }
.parts .what small { color: var(--muted); font-size: 13px; }
.incidents { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.incidents li { padding: 8px 0; border-top: 1px solid var(--line); }
.incidents li:first-child { border-top: 0; }
.incidents small { color: var(--muted); }

/* ---------- /help ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-inline-start: 34px; margin-bottom: 10px; }
.steps > li::before {
  content: counter(step, persian);
  position: absolute; inset-inline-start: 0; top: 1px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px;
}
.shots { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 12px 0 4px; }
.shots figure { margin: 0; flex: 1 1 220px; max-width: 270px; }
.shots img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
}
.shots figcaption { color: var(--muted); font-size: 13px; text-align: center; margin-top: 6px; }
.tips { list-style: none; padding: 0; margin: 0; }
.tips li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.tips li:first-child { border-top: 0; }
.tips .ic {
  flex: none; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px;
}
.kbd {
  display: inline-block; padding: 0 8px; border-radius: 8px; font-weight: 700; font-size: 14px;
  background: var(--accent); color: var(--accent-ink);
}
.kbd.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.report textarea {
  width: 100%; min-height: 96px; resize: vertical; direction: ltr; text-align: left;
  font: 12.5px/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px;
}
