/* =====================
   GUIDE DETAIL PAGE
   ===================== */
.nav-examples-link {
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 500;
}
.nav-examples-link:hover { color: var(--fg); }

.guide-detail-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 1100px;
  margin: 0 auto;
  gap: 48px;
  padding: 48px 40px 80px;
  align-items: start;
}

/* Sticky TOC */
.guide-toc {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.toc-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 8px;
}
.toc-link {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.toc-link:hover { background: white; color: var(--fg); }
.toc-link-active { background: white; color: var(--fg); font-weight: 600; }
.toc-cta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toc-cta-text {
  font-size: 11.5px;
  color: var(--fg-muted);
  font-weight: 600;
}
.toc-cta-btn {
  display: block;
  text-align: center;
  padding: 9px 14px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.toc-cta-btn:hover { background: #b45309; }

/* Main content */
.guide-detail-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.guide-detail-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.guide-detail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--fg-faint);
}
.guide-detail-breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
}
.guide-detail-breadcrumb a:hover { color: var(--fg); }
.guide-detail-category {
  display: flex;
  align-items: center;
  gap: 6px;
}
.guide-detail-category-icon { font-size: 18px; }
.guide-detail-category-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
.guide-detail-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.guide-detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guide-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--bg-alt);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.guide-detail-badge-skill-green { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
.guide-detail-badge-skill-amber { background: var(--accent-light); color: #92400e; border-color: #fde68a; }
.guide-detail-badge-skill-red { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.guide-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.guide-action-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.guide-action-export-pdf {
  background: white;
  color: var(--fg);
  border: 1px solid var(--border);
}
.guide-action-export-pdf:hover { background: var(--bg-alt); }
.guide-action-try {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  background: var(--accent);
  color: white;
  text-decoration: none;
  transition: background 0.2s;
}
.guide-action-try:hover { background: #b45309; }

/* Guide sections */
.guide-detail-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-detail-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  display: flex;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.guide-detail-summary-text {
  font-size: 15.5px;
  color: var(--fg-muted);
  line-height: 1.7;
}
.guide-detail-goal {
  background: var(--accent-light);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
}
.guide-detail-goal-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.guide-detail-goal-text {
  font-size: 14.5px;
  color: #92400e;
  line-height: 1.6;
}

/* Steps */
.guide-detail-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-detail-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.guide-detail-step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fg);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.guide-detail-step-body {
  flex: 1;
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-detail-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}
.guide-detail-step-detail {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}
.guide-detail-step-tip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.5;
}
.guide-detail-step-tip-icon { flex-shrink: 0; font-size: 14px; }

/* Tools table */
.guide-detail-tools-table {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.guide-detail-tools-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 10px 20px;
  background: var(--bg-alt);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border-bottom: 1px solid var(--border);
}
.guide-detail-tools-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 20px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.guide-detail-tools-row:last-of-type { border-bottom: none; }
.guide-detail-tool-name { color: var(--fg); }
.guide-detail-tool-price { color: var(--fg-muted); font-weight: 500; white-space: nowrap; }
.guide-detail-tools-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  padding: 12px 20px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
  background: var(--bg-alt);
  border-top: 2px solid var(--border);
}
.guide-detail-total-value { color: var(--accent); }

/* Warnings */
.guide-detail-warnings {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-detail-warning-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-size: 13.5px;
  color: #c2410c;
  line-height: 1.55;
}

/* Troubleshooting */
.guide-detail-troubleshooting {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-detail-trouble-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.guide-detail-trouble-problem {
  padding: 12px 16px;
  background: #fef2f2;
  border-bottom: 1px solid var(--border);
}
.guide-detail-trouble-fix {
  padding: 12px 16px;
  background: white;
}
.guide-detail-trouble-label {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #991b1b;
  margin-bottom: 4px;
}
.guide-detail-trouble-label-fix { color: var(--teal); }
.guide-detail-trouble-problem p { font-size: 13.5px; color: var(--fg); line-height: 1.5; }
.guide-detail-trouble-fix p { font-size: 13.5px; color: var(--fg-muted); line-height: 1.55; }

/* Missing info */
.guide-detail-missing {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.guide-detail-missing-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  font-size: 13.5px;
  color: var(--fg-muted);
  line-height: 1.55;
}

/* Resources */
.guide-detail-resources {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-detail-resources li {
  font-size: 14px;
  color: var(--fg-muted);
  padding: 10px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  line-height: 1.5;
  padding-left: 36px;
  position: relative;
}
.guide-detail-resources li::before {
  content: '→';
  position: absolute;
  left: 14px;
  color: var(--accent);
  font-weight: 700;
}

/* Bottom CTA */
.guide-detail-bottom-cta {
  background: var(--fg);
  color: var(--bg);
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-detail-bottom-cta h3 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--bg);
  letter-spacing: -0.02em;
}
.guide-detail-bottom-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}
.guide-detail-bottom-cta-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.guide-detail-back-link {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35) !important;
}
.guide-detail-back-link a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}
.guide-detail-back-link a:hover { color: rgba(255,255,255,0.7); }

@media (max-width: 900px) {
  .guide-detail-layout {
    grid-template-columns: 1fr;
    padding: 32px 24px 60px;
    gap: 32px;
  }
  .guide-toc {
    position: static;
    display: none;
  }
}
@media (max-width: 480px) {
  .guide-detail-bottom-cta { padding: 28px 24px; }
  .guide-detail-step-body { padding: 14px 16px; }
}
