/* page-contact-detail.css — Contact detail as its own page.
 *
 * The detail body (Details grid, Deals, Activities, Notes) reuses the shared
 * .cd-* classes defined in page-contacts.css — those styles are global, so the
 * page inherits the exact look the drawer had. This file only styles the page
 * shell: the back link and page-header title. Mirrors page-deal-detail.css.
 * All new rules are scoped under .contact-detail-page / .dd-*. */

.contact-detail-page {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 4px 4px 32px;
  /* .cd-section has no margin of its own (it relied on the old drawer's
     .contact-detail flex+gap wrapper) — reproduce that spacing here. */
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-detail-page .dd-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  margin-bottom: 0.85rem;
}
.contact-detail-page .dd-back:hover { color: var(--color-primary, #4f46e5); }

.contact-detail-page .dd-title {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-text);
}

.contact-detail-page .dd-notfound {
  text-align: center;
  padding: 3rem 1rem;
}
.contact-detail-page .dd-notfound .dd-title { justify-content: center; }
.contact-detail-page .dd-notfound-msg {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin: 0.6rem 0 1.4rem;
}

/* Danger-zone footer (Merge / Delete) — mirrors deal-detail's .pd-detail-foot. */
.contact-detail-page .pd-detail-foot {
  display: flex;
  gap: 0.6rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 640px) {
  .contact-detail-page { padding-left: 2px; padding-right: 2px; }
  .contact-detail-page .dd-title { font-size: 1.35rem; }
}
