/* راهنمای استفاده — the usage guide's own layer over learn.css.
 *
 * The guide is a column of reading like an article, with one thing an
 * article does not have: pictures of the app, at the width of the column
 * rather than the width of the page, because a screenshot blown up to 1080
 * pixels stops being an illustration and becomes the subject.
 */

.guide .page-head,
.guide > h2,
.guide .guide-steps,
.guide .faq,
.guide .guide-cta,
.guide .guide-more {
  max-width: 68ch;
  margin-inline: auto;
}

.guide > h2 {
  margin: clamp(30px, 5vw, 52px) 0 14px;
  font-size: 1.45rem;
  font-weight: 800;
}

/* ---- the steps ---- */

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(26px, 4vw, 40px);
}

.guide-step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.5;
}

/* The number, as a counter rather than as part of the sentence. */
.step-n {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.guide-step p {
  margin: 0;
  color: #cfd6e4;
  font-size: 1.02rem;
  line-height: 2;
}
.guide-step strong { color: var(--text); font-weight: 700; }

/* A picture of the app, framed the way the app frames itself. */
.guide-step img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  /* The shots are of a dark screen on a dark page; without this the edge of
     the app and the edge of the page are the same colour and the picture
     has no boundary. */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.guide-cta {
  margin: clamp(26px, 4vw, 40px) auto 0;
  text-align: center;
}
.guide-cta .cta {
  display: inline-block;
  padding: 11px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #14181f;
  font-weight: 700;
}
.guide-cta .cta:hover { filter: brightness(1.06); }

/* ---- the questions ---- */

.faq {
  display: grid;
  gap: 8px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.faq summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 650;
  line-height: 1.6;
  /* The default triangle sits on the wrong side of a right-to-left line and
     cannot be moved; this draws one that can. */
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  flex: 0 0 auto;
  color: var(--muted);
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--accent); }

.faq p {
  margin: 0;
  padding: 0 16px 16px;
  color: #cfd6e4;
  line-height: 2;
}
.faq strong { color: var(--text); font-weight: 700; }

.guide-more {
  margin-top: clamp(26px, 4vw, 40px);
  color: var(--muted);
  line-height: 2;
}
.guide-more a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
