/* The "How to use QCCESS" guide (guide.html). Builds on index.css's
   body.home palette and public nav. */

.guide {
  padding: 2.5rem 0 4rem;
  color: var(--ink);
}

.guide-hero {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.guide-hero__kicker {
  margin: 0 0 0.25rem;
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: var(--mint-deep);
}

.guide-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.1;
}

.guide-hero__lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.guide-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

/* contents */
.guide-toc {
  position: sticky;
  top: 6.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(39, 44, 77, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
}

.guide-toc__title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.guide-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.guide-toc a {
  color: var(--ink);
  text-decoration: none;
}

.guide-toc a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* sections */
.guide-body {
  max-width: 760px;
}

.guide-section {
  padding: 0 0 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(39, 44, 77, 0.08);
  scroll-margin-top: 6.5rem;
  line-height: 1.65;
}

.guide-section h2 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1rem;
  font-size: 1.7rem;
}

.guide-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--mint), var(--mint-deep));
  color: var(--accent-deep);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.guide-section p {
  margin: 0 0 1rem;
}

.guide-section a {
  color: var(--accent);
  font-weight: 600;
}

.guide-steps,
.guide-list {
  margin: 0 0 1.25rem;
  padding-left: 1.3rem;
  display: grid;
  gap: 0.65rem;
}

.guide-steps li::marker {
  font-weight: 700;
  color: var(--mint-deep);
}

.guide-steps--small {
  gap: 0.4rem;
}

.guide-defs {
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.guide-defs dt {
  font-weight: 700;
}

.guide-defs dd {
  margin: 0.1rem 0 0;
  color: var(--ink-soft);
}

/* screenshots */
.guide-shot {
  margin: 1.25rem 0 1.5rem;
}

.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(39, 44, 77, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(22, 40, 74, 0.1);
  background: #fff;
}

.guide-shot figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}

.guide-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 2rem;
  align-items: start;
}

.guide-shot--phone {
  margin: 0;
}

.guide-shot--phone img {
  border-radius: 24px;
  border: 6px solid #1e2440;
}

.guide-tip {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  background: rgba(95, 216, 187, 0.14);
}

.guide-tip i {
  margin-top: 0.3rem;
  color: var(--mint-deep);
}

.guide-tip p {
  margin: 0;
}

/* questions */
.guide-faq {
  border: 1px solid rgba(39, 44, 77, 0.1);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 0.6rem;
}

.guide-faq summary {
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.guide-faq summary::-webkit-details-marker {
  display: none;
}

.guide-faq summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
  color: var(--mint-deep);
}

.guide-faq[open] summary::after {
  content: "−";
}

.guide-faq p {
  margin: 0;
  padding: 0 1.1rem 1rem;
  color: var(--ink-soft);
}

.guide-cta {
  padding: 2rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(45, 69, 115, 0.08), rgba(95, 216, 187, 0.16));
  text-align: center;
}

.guide-cta h2 {
  margin: 0 0 1rem;
}

.guide-footer {
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .guide-toc {
    position: static;
  }

  .guide-toc ol {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .guide {
    padding-top: 1.5rem;
  }

  .guide-split {
    grid-template-columns: 1fr;
  }

  .guide-shot--phone {
    max-width: 260px;
    margin: 0 auto;
  }

  .guide-toc ol {
    grid-template-columns: 1fr;
  }

  .guide-section h2 {
    font-size: 1.4rem;
  }
}
