/* ═══════════════════════════════════════════════════════════════
   FRAMEWORK-DETAIL.CSS — Single framework + funnel rail
   ═══════════════════════════════════════════════════════════════ */

.fw-single-hero { background: var(--clr-void); border-bottom: 1px solid var(--glass-border); }
.fw-single-cluster-pill {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6ee7b7;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.fw-single-grid { align-items: start; }
.fw-article-body .za-p-rich table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
.fw-article-body .za-p-rich th,
.fw-article-body .za-p-rich td {
  border: 1px solid var(--clr-border);
  padding: 0.75rem 1rem;
  text-align: left;
}
.fw-article-body .za-p-rich th {
  background: rgba(16, 185, 129, 0.06);
  font-weight: 700;
}

.fw-assessment-cta {
  margin-top: 3rem;
  padding: 2rem 2.25rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(45, 212, 191, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.18);
}
.fw-assessment-cta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  color: var(--clr-heading);
}
.fw-assessment-cta p {
  margin: 0 0 1.25rem;
  color: var(--clr-text-muted);
  line-height: 1.65;
}

/* Funnel cluster rail */
.fw-funnel-rail {
  padding: 1.25rem;
  border-radius: 16px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.15);
  margin-bottom: 1.25rem;
}
.fw-funnel-rail__cluster {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.fw-funnel-rail__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.35rem;
}
.fw-funnel-rail__cluster-id {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #6ee7b7;
}
.fw-funnel-rail__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.85rem;
}
.fw-funnel-rail__steps {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fw-funnel-rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s, background 0.2s;
}
.fw-funnel-rail__link:hover {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.06);
}
.fw-funnel-rail__icon { color: #10b981; flex-shrink: 0; }
.fw-funnel-rail__text { flex: 1; min-width: 0; }
.fw-funnel-rail__step-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
}
.fw-funnel-rail__slug {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fw-funnel-rail__network {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.fw-funnel-rail__network-link {
  font-size: 0.8125rem;
  color: #2dd4bf;
  text-decoration: none;
}
.fw-funnel-rail__network-link:hover { text-decoration: underline; }
.fw-funnel-rail__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: #022c22;
  background: linear-gradient(135deg, #10b981, #2dd4bf);
  transition: opacity 0.2s, transform 0.2s;
}
.fw-funnel-rail__cta:hover { opacity: 0.92; transform: translateY(-1px); }

.fw-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
}
.fw-related-card {
  display: block;
  padding: var(--sp-6);
  border-radius: var(--r-xl);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  text-decoration: none;
  transition: transform var(--t-spring), border-color 0.25s;
}
.fw-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.35);
}
.fw-related-card__cat {
  font-size: var(--fs-xs);
  color: #10b981;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}
.fw-related-card__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--clr-heading);
  line-height: 1.4;
  margin-bottom: var(--sp-2);
}
.fw-related-card__meta {
  font-size: var(--fs-xs);
  color: var(--clr-text-faint);
}

@media (max-width: 960px) {
  .fw-single-sidebar { order: -1; }
  .fw-funnel-rail { margin-bottom: 0; }
}
