/* Use Case Detail Pages */
.container-narrow { max-width: 960px; margin: 0 auto; padding: 0 24px; }

.uc-hero-detail {
  padding: 120px 24px 48px; text-align: center;
  position: relative;
}
.uc-hero-detail::after {
  content: ''; position: absolute; bottom: 0; left: 10%; right: 10%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.uc-back {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 .75rem var(--mono); color: var(--accent); margin-bottom: 20px;
}
.uc-back:hover { color: #4338ca; }
.uc-hero-icon { font-size: 2.8rem; margin-bottom: 12px; }
.uc-badge {
  display: inline-block; font: 600 .68rem var(--mono);
  padding: 4px 14px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 14px;
}
.uc-hero-detail h1 {
  font-size: 2rem; font-weight: 700; color: var(--ink);
  margin-bottom: 10px; letter-spacing: -.03em;
}
.uc-subtitle {
  font-size: .95rem; color: var(--muted); max-width: 480px;
  margin: 0 auto; line-height: 1.55;
}

.uc-content { padding: 40px 24px 80px; max-width: 960px; margin: 0 auto; }

.uc-section { margin-bottom: 40px; }
.uc-section h2 {
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  margin-bottom: 14px; padding-bottom: 6px;
  border-bottom: 2px solid var(--accent-light);
  letter-spacing: -.02em;
}
.uc-section h3 {
  font-size: .95rem; font-weight: 600; color: var(--accent);
  margin: 20px 0 8px;
}
.uc-section p { color: var(--fg); margin-bottom: 10px; line-height: 1.6; font-size: .9rem; }
.uc-section ul, .uc-section ol { margin: 0 0 14px 20px; color: var(--fg); line-height: 1.6; font-size: .9rem; }
.uc-section li { margin-bottom: 4px; }

.uc-section table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: .84rem; }
.uc-section thead th {
  background: linear-gradient(135deg, #1e1b4b, #312e81);
  color: #fff; padding: 8px 12px; text-align: left;
  font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .04em;
}
.uc-section thead th:first-child { border-radius: 6px 0 0 0; }
.uc-section thead th:last-child { border-radius: 0 6px 0 0; }
.uc-section tbody td { padding: 8px 12px; border-bottom: 1px solid var(--bg); }
.uc-section tbody tr:hover { background: var(--accent-light); }
.uc-section code { font-size: .8rem; background: var(--accent-light); border: 1px solid #c7d2fe; color: var(--accent); padding: 1px 5px; border-radius: 3px; }

.uc-tables-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.uc-fixed { font: 500 .78rem var(--mono); color: var(--faint); margin-top: 8px; }

/* Steps */
.uc-step { display: flex; gap: 16px; margin-bottom: 24px; }
.uc-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font: 700 .78rem var(--mono); flex-shrink: 0; margin-top: 2px;
}
.uc-step-body { flex: 1; }
.uc-step-body h3 { font-size: .95rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }

/* Table of Contents */
.uc-toc {
  position: sticky; top: 60px; z-index: 90;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.uc-toc-inner {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.uc-toc-inner::-webkit-scrollbar { display: none; }
.uc-toc a {
  display: block; white-space: nowrap;
  font: 500 .72rem var(--mono); color: var(--muted);
  padding: 10px 12px; text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  flex-shrink: 0;
}
.uc-toc a:hover { color: var(--accent); }
.uc-toc a.active {
  color: var(--accent); border-bottom-color: var(--accent);
  font-weight: 600;
}

@media (max-width: 640px) {
  .uc-tables-grid { grid-template-columns: 1fr; }
  .uc-hero-detail h1 { font-size: 1.6rem; }
  .uc-toc a { font-size: .68rem; padding: 8px 10px; }
  .uc-section table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
