/* =========================================================
   Instructions pages — standalone client-facing styles
   ========================================================= */

.instructions-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

/* ---- Header ---- */
.instructions-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: .75rem 1.5rem;
}
.instructions-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: .4rem .85rem;
  border-radius: 6px;
  background: rgba(91,110,245,.18);
  border: 1px solid rgba(91,110,245,.35);
  transition: background .15s, border-color .15s;
  white-space: nowrap;
  min-width: 130px;
}
.back-home-btn:hover {
  background: rgba(91,110,245,.3);
  border-color: var(--accent);
}
.header-spacer {
  min-width: 130px;
}
.instructions-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-align: center;
}
.instructions-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin: 0;
}
.instructions-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0;
}

/* ---- Body ---- */
.instructions-body {
  display: flex;
  justify-content: center;
  padding: 2.5rem 1.5rem 4rem;
}
.instructions-container {
  max-width: 720px;
  width: 100%;
}
.instructions-page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent-h);
  margin-bottom: .5rem;
}
.instructions-intro {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.instructions-intro a {
  color: var(--accent-h);
  text-decoration: underline;
}

/* ---- Checkpoint sections ---- */
.checkpoint {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.checkpoint h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: .75rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.checkpoint > p {
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.checkpoint ol {
  padding-left: 1.25rem;
  counter-reset: step;
  list-style: none;
}
.checkpoint ol > li {
  position: relative;
  padding-left: .5rem;
  margin-bottom: .85rem;
  font-size: .9rem;
  line-height: 1.55;
  counter-increment: step;
}
.checkpoint ol > li::before {
  content: counter(step) ".";
  position: absolute;
  left: -1.25rem;
  font-weight: 600;
  color: var(--accent);
}
.checkpoint ol > li strong {
  color: var(--text);
}
.checkpoint ul {
  padding-left: 1.25rem;
  margin-top: .35rem;
}
.checkpoint ul li {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: .2rem;
}

/* ---- Status legend dots ---- */
.status-legend {
  list-style: none;
  padding-left: 0 !important;
}
.status-legend li {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.green  { background: var(--green); }
.dot.yellow { background: var(--yellow); }
.dot.red    { background: var(--red); }
.dot.gray   { background: var(--border); }
.dot.orange { background: #ffaa33; }

/* ---- Thank you ---- */
.checkpoint-thanks {
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
}
