/* Client detail page — composes pipeline.css + theme.css */

/* ─── Client Name Link (on pipeline cards & here) ─────────── */

a.client-name {
  cursor: pointer;
  transition: color 0.15s;
}

a.client-name:hover {
  color: var(--copper);
  text-decoration: underline;
}

/* ─── Header Card ─────────────────────────────────────────── */

.client-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 9px 16px;
  margin-top: 14px;
}

.client-detail-header {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.client-detail-header .client-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 6px;
}

.client-detail-header .client-meta {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
}

.client-contact {
  background: white;
  border: 1.5px solid var(--stone);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.client-contact-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.client-contact-row .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.client-contact-row .value {
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.client-contact-row .value.muted {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
}

.client-contact-row a {
  color: var(--copper);
  text-decoration: none;
  font-weight: 500;
}

.client-contact-row a:hover {
  text-decoration: underline;
}

.client-summary {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 16px 24px;
  background: var(--ink);
  border-radius: 12px;
  margin-bottom: var(--space-md);
}

.client-summary .stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.client-summary .stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
}

.client-summary .stat-value.overdue-value {
  color: #ff8580;
}

.client-summary .stat-value.muted-value {
  color: var(--ash);
}

.client-summary .stat-label {
  font-size: 11px;
  color: var(--ash);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── Section Heading ─────────────────────────────────────── */

.section-heading {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-sm);
}

/* ─── Project list (re-uses .project-card from pipeline.css) ─── */

.client-projects-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.client-projects-list .project-card {
  cursor: default;
}

.client-projects-list .project-card:hover {
  border-color: var(--stone);
  box-shadow: none;
}

/* ─── Responsive ──────────────────────────────────────────── */

@media (max-width: 760px) {
  .client-detail-header {
    grid-template-columns: 1fr;
  }
}
