/* ===========================
   DETAIL PAGES — SHARED STYLES
   =========================== */

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  gap: 2.5rem;
  align-items: start;
}
.detail-main { display: flex; flex-direction: column; gap: 2rem; }
.detail-sidebar { display: flex; flex-direction: column; gap: 1.25rem; position: sticky; top: 84px; }

.detail-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.detail-block h2 {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.detail-block p {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 0.85rem;
}
.detail-block p:last-child { margin-bottom: 0; }
.detail-block p strong { color: var(--text); font-weight: 500; }

/* Steps */
.steps-list { display: flex; flex-direction: column; gap: 1.25rem; padding: 0; list-style: none; }
.step-item { display: flex; gap: 1rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.25);
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step-content h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.step-content p { font-size: 0.88rem; color: var(--text-muted); margin: 0; font-weight: 300; }

/* Problems / Results */
.problems-list { display: flex; flex-direction: column; gap: 0.75rem; padding: 0; list-style: none; }
.problem-item, .result-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  font-size: 0.9rem; color: var(--text-muted); font-weight: 300; line-height: 1.6;
}
.problem-item::before { content: '⚠️'; flex-shrink: 0; font-size: 0.85rem; margin-top: 2px; }
.result-item::before  { content: '✅'; flex-shrink: 0; font-size: 0.85rem; margin-top: 2px; }

/* Sidebar */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.sidebar-card h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  font-weight: 700;
}
.meta-row { display: flex; flex-direction: column; gap: 0.1rem; }
.meta-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-dim); font-weight: 600; }
.meta-value { font-size: 0.9rem; color: var(--text-muted); }
.meta-divider { border: none; border-top: 1px solid var(--border); margin: 0.15rem 0; }

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition);
  margin-bottom: 1.75rem;
}
.back-btn:hover { color: var(--accent); }

/* Page title */
.page-title-wrap { margin-bottom: 0.5rem; }
.page-title-wrap .card-tag { display: inline-block; margin-bottom: 0.75rem; }
.page-title-wrap h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.75rem; }
.page-title-wrap .hero-desc { font-size: 1rem; color: var(--text-muted); font-weight: 300; }

code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.4em;
  color: var(--accent);
}

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
}
