/* Guide page — matches purchase.css patterns */
.page-guide {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-guide .card-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--z5-surf);
  padding: 12px 14px;
}

.guide-section__head h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: #d7e8ff;
}

.guide-section__head .muted {
  margin: 0;
}

.guide-quick-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.guide-quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.guide-quick-link:hover {
  border-color: rgba(101, 216, 255, 0.45);
  background: linear-gradient(180deg, rgba(17, 23, 40, 0.98), rgba(12, 20, 36, 0.92));
}

.guide-quick-link__ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(101, 216, 255, 0.12);
  border: 1px solid rgba(101, 216, 255, 0.25);
  color: var(--cyan);
  flex-shrink: 0;
}

.guide-quick-link__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.guide-quick-link__body strong {
  font-size: 0.86rem;
  color: #eef5ff;
}

.guide-quick-link__arrow {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.7rem;
  flex-shrink: 0;
}

.guide-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.guide-steps li + li {
  margin-top: 8px;
}

.guide-steps a {
  color: var(--cyan);
  text-decoration: none;
}

.guide-steps a:hover {
  text-decoration: underline;
}

.guide-faq-section-title {
  margin: 18px 0 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(130, 188, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9edcff;
}

.guide-faq-section-title:first-of-type {
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}

.guide-faq-item {
  padding: 0;
  border-top: 1px solid rgba(130, 188, 255, 0.1);
}

.guide-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #eef5ff;
}

.guide-faq-item summary::-webkit-details-marker {
  display: none;
}

.guide-faq-item summary::after {
  content: "+";
  float: right;
  color: var(--cyan);
  font-weight: 700;
}

.guide-faq-item[open] summary::after {
  content: "−";
}

.guide-faq-answer {
  padding: 0 0 12px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.guide-faq-answer p,
.guide-faq-answer li {
  margin: 0 0 8px;
}

.guide-faq-answer ol,
.guide-faq-answer ul {
  margin: 8px 0 10px;
  padding-left: 18px;
}

.guide-faq-answer strong {
  color: #dce8ff;
}

.guide-faq-answer a {
  color: var(--cyan);
  text-decoration: none;
}

.guide-faq-answer a:hover {
  text-decoration: underline;
}

.guide-faq-answer code {
  font-size: 0.78rem;
  color: #b8d4f8;
}

.guide-video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}

.guide-video-card {
  border: 1px solid #33425f;
  border-radius: 12px;
  background: rgba(8, 14, 26, 0.6);
  padding: 12px;
}

.guide-video-card h4 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #d7e8ff;
}

.guide-video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #33425f;
  background: #050810;
}

.guide-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.guide-video-placeholder {
  margin: 0;
  padding: 10px 0 2px;
  line-height: 1.45;
}

.guide-video-placeholder code {
  font-size: 0.74rem;
  color: #b8d4f8;
}


.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(130, 188, 255, 0.12);
}

.guide-actions .solid,
.guide-actions .ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

body[data-page="guide"] #refreshBtn {
  display: none !important;
}

body[data-page="guide"].arc-gate-open .shell {
  filter: none;
  pointer-events: auto;
}

body[data-page="guide"].arc-gate-open #arcGate {
  display: none !important;
}

@media (min-width: 560px) {
  .guide-quick-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .guide-quick-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .guide-faq-item summary {
    font-size: 0.82rem;
    padding-right: 28px;
  }

  .guide-actions {
    flex-direction: column;
  }

  .guide-actions .solid,
  .guide-actions .ghost {
    width: 100%;
    justify-content: center;
  }
}
