/* ══════════════════════════════════════════════
   XLockFree — Guide / Article styles (hyper premium)
   Layers on top of style.css design tokens
   ══════════════════════════════════════════════ */

.guide-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 40px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-bottom: 26px;
}
.breadcrumb a { color: var(--text-2); text-decoration: none; transition: color 0.15s; }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--text-3); }

/* ── Article header ── */
.guide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #4ade80;
  border: 1px solid rgba(34,197,94,0.28);
  background: rgba(34,197,94,0.06);
  margin-bottom: 22px;
}
.guide-h1 {
  font-size: 2.5rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text-1);
  margin-bottom: 18px;
}
.guide-h1 .accent {
  background: linear-gradient(120deg, #4ade80, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.82rem;
  color: var(--text-3);
  margin-bottom: 30px;
}
.guide-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); }
.guide-lead {
  font-size: 1.14rem;
  line-height: 1.7;
  color: #cbd5e1;
  margin-bottom: 36px;
}

/* ── Prose ── */
.prose { color: #b6c2d4; }
.prose > h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-1);
  margin: 44px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.prose > h2:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.prose > h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-1);
  margin: 28px 0 12px;
}
.prose p { font-size: 1rem; line-height: 1.75; margin-bottom: 18px; }
.prose a { color: #4ade80; text-decoration: none; border-bottom: 1px solid rgba(74,222,128,0.3); transition: border-color 0.15s; }
.prose a:hover { border-color: #4ade80; }
.prose strong { color: var(--text-1); font-weight: 700; }
.prose ul, .prose ol { margin: 0 0 20px 4px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { font-size: 1rem; line-height: 1.7; margin-bottom: 9px; padding-left: 4px; }
.prose li::marker { color: var(--green); }
.prose kbd {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.82em;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-bright);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 7px;
  color: #e2e8f0;
}
.prose code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.85em;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.16);
  border-radius: 6px;
  padding: 2px 7px;
  color: #86efac;
}

/* ── Numbered step cards ── */
.steps { list-style: none !important; counter-reset: step; margin: 0 0 24px !important; padding: 0 !important; }
.steps > li {
  position: relative;
  counter-increment: step;
  list-style: none;
  padding: 18px 20px 18px 62px;
  margin-bottom: 12px !important;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
}
.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #052e16;
  background: linear-gradient(135deg, #4ade80, #16a34a);
  box-shadow: 0 4px 14px rgba(34,197,94,0.3);
}
.steps > li strong { display: block; margin-bottom: 3px; }

/* ── Callouts ── */
.callout {
  display: flex;
  gap: 13px;
  padding: 16px 18px;
  border-radius: var(--radius-inner);
  margin: 24px 0;
  font-size: 0.95rem;
  line-height: 1.65;
  border: 1px solid;
}
.callout .c-icon { flex-shrink: 0; margin-top: 1px; }
.callout p { margin: 0 !important; font-size: 0.95rem !important; }
.callout.tip  { background: rgba(34,197,94,0.06);  border-color: rgba(34,197,94,0.22);  color: #bbf7d0; }
.callout.warn { background: rgba(245,158,11,0.06);  border-color: rgba(245,158,11,0.24); color: #fde68a; }
.callout.info { background: rgba(6,182,212,0.06);   border-color: rgba(6,182,212,0.22);  color: #a5f3fc; }
.callout strong { color: #fff; }

/* ── CTA banner ── */
.guide-cta {
  position: relative;
  overflow: hidden;
  margin: 40px 0;
  padding: 30px 28px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(34,197,94,0.14), rgba(6,182,212,0.10));
  border: 1px solid rgba(34,197,94,0.25);
  text-align: center;
}
.guide-cta h3 { font-size: 1.35rem; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -0.5px; }
.guide-cta p { color: #cbd5e1; font-size: 0.98rem; margin-bottom: 20px; }
.guide-cta .cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  color: #052e16;
  text-decoration: none;
  background: linear-gradient(135deg, #4ade80, #22c55e);
  box-shadow: 0 10px 30px rgba(34,197,94,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.guide-cta .cta-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(34,197,94,0.45); }

/* ── Guide FAQ ── */
.guide-faq { margin-top: 44px; }
.guide-faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-inner);
  background: var(--surface-2);
  margin-bottom: 10px;
  overflow: hidden;
}
.guide-faq summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  color: var(--text-1);
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.guide-faq summary::-webkit-details-marker { display: none; }
.guide-faq summary::after { content: '+'; color: var(--green); font-size: 1.3rem; font-weight: 400; transition: transform 0.2s; }
.guide-faq details[open] summary::after { transform: rotate(45deg); }
.guide-faq details p { padding: 0 18px 18px; color: var(--text-2); font-size: 0.95rem; line-height: 1.7; margin: 0; }

/* ── Related guides ── */
.related { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); }
.related h2 { font-size: 1.15rem; font-weight: 800; color: var(--text-1); margin-bottom: 18px; letter-spacing: -0.3px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.related-card {
  display: block;
  padding: 18px;
  border-radius: var(--radius-inner);
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.related-card:hover { border-color: rgba(34,197,94,0.35); transform: translateY(-2px); }
.related-card .rc-title { font-weight: 700; color: var(--text-1); font-size: 0.98rem; margin-bottom: 5px; }
.related-card .rc-desc { color: var(--text-3); font-size: 0.85rem; line-height: 1.5; }

/* ── Guides hub / index ── */
.hub-head { max-width: 720px; margin: 46px auto 40px; text-align: center; }
.hub-head h1 { font-size: 2.6rem; font-weight: 800; letter-spacing: -1.2px; margin-bottom: 16px; }
.hub-head h1 .accent {
  background: linear-gradient(120deg, #4ade80, #22d3ee);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hub-head p { font-size: 1.1rem; color: var(--text-2); line-height: 1.65; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 40px; }
.hub-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border-radius: var(--radius-card);
  background: var(--surface-1);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}
.hub-card:hover { border-color: rgba(34,197,94,0.35); transform: translateY(-3px); }
.hub-card .hc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2);
  margin-bottom: 16px;
}
.hub-card h2 { font-size: 1.18rem; font-weight: 700; color: var(--text-1); margin-bottom: 8px; letter-spacing: -0.3px; }
.hub-card p { color: var(--text-2); font-size: 0.92rem; line-height: 1.6; flex-grow: 1; }
.hub-card .hc-go { margin-top: 16px; color: #4ade80; font-size: 0.88rem; font-weight: 600; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .guide-h1 { font-size: 1.85rem; }
  .hub-head h1 { font-size: 2rem; }
  .guide-wrap { padding-top: 24px; }
  .guide-lead { font-size: 1.05rem; }
  .steps > li { padding: 16px 16px 16px 56px; }
}
