/* ══════════════════════════════════════════════════════
   Client Profile pages — shared styles
   Matches the Command Center dark theme.
   ══════════════════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: #0f172a; color: #e2e8f0; }

/* Sticky nav (mirrors command center) */
.nav { background:#0a1628; border-bottom:1px solid #1e293b; padding:7px 16px; display:flex; gap:6px; flex-wrap:wrap; align-items:center; font-size:0.78rem; position:sticky; top:0; z-index:999; }
.nav .brand { color:#475569; font-weight:700; margin-right:4px; }
.nav a { color:#93c5fd; text-decoration:none; padding:3px 9px; border-radius:5px; background:#1e293b; white-space:nowrap; }
.nav a:hover { background:#253347; }
.nav a.wiki { color:#cdec60; }
.nav a.active { background:#cdec60; color:#1c352b; font-weight:700; }

/* Header */
.header { padding: 22px 24px; border-bottom: 1px solid #1e293b; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.header-left { display:flex; align-items:center; gap:18px; }
.logo-tile { background:#f8fafc; border:1px solid #334155; border-radius:12px; padding:12px 16px; display:flex; align-items:center; justify-content:center; min-width:110px; min-height:72px; }
.logo-tile img { max-height:64px; max-width:220px; display:block; }
.header h1 { font-size: 1.7rem; color: #f8fafc; }
.header .sub { color: #94a3b8; font-size: 0.9rem; margin-top: 4px; }
.header .meta { color:#64748b; font-size:0.8rem; margin-top:6px; }
.back { display:inline-block; padding:8px 16px; background:#1e293b; border:1px solid #334155; border-radius:8px; color:#93c5fd; text-decoration:none; font-size:0.85rem; font-weight:600; }
.back:hover { background:#253347; }

/* Layout */
.divider { padding: 8px 24px; }
.divider-label { font-size: 0.75rem; color: #475569; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; border-top: 1px solid #1e293b; padding-top: 8px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 16px; padding: 16px 24px; align-items: start; }
.card { background: #1e293b; border: 1px solid #334155; border-radius: 12px; overflow: hidden; }
.card.full-width { grid-column: 1 / -1; }
.card-header { padding: 14px 18px; border-bottom: 1px solid #334155; display: flex; justify-content: space-between; align-items: center; gap:8px; }
.card-title { font-weight: 700; font-size: 1rem; color:#f8fafc; }
.card-body { padding: 14px 18px; }

/* Badges */
.badge { font-size: 0.68rem; padding: 3px 9px; border-radius: 8px; font-weight: 700; white-space:nowrap; }
.badge-green { background: #166534; color: #4ade80; }
.badge-yellow { background: #713f12; color: #facc15; }
.badge-red { background: #7f1d1d; color: #fca5a5; }
.badge-blue { background: #1e3a5f; color: #93c5fd; }
.badge-purple { background: #4c1d95; color: #c4b5fd; }
.badge-orange { background: #7c2d12; color: #fdba74; }

/* Key-value lists */
.kv { list-style: none; }
.kv li { padding: 7px 0; border-bottom: 1px solid #1a2332; font-size: 0.86rem; display: flex; justify-content: space-between; gap: 12px; }
.kv li:last-child { border-bottom: none; }
.kv .label { color: #94a3b8; flex-shrink:0; }
.kv .value { color: #e2e8f0; font-weight: 500; text-align: right; }
.kv .value a { color:#93c5fd; text-decoration:none; }
.kv .value a:hover { text-decoration:underline; }

/* Prose blocks */
.prose { font-size: 0.88rem; line-height: 1.6; color:#cbd5e1; }
.prose p { margin-bottom: 10px; }
.prose strong { color:#e2e8f0; }
.prose ul { list-style: none; margin: 4px 0 10px; }
.prose li { padding: 4px 0 4px 16px; position:relative; font-size:0.86rem; }
.prose li::before { content:"▸"; color:#cdec60; position:absolute; left:0; }
.svc { margin-bottom:12px; }
.svc-name { color:#cdec60; font-weight:700; font-size:0.9rem; margin-bottom:3px; }
.svc-desc { font-size:0.84rem; color:#94a3b8; line-height:1.55; }

/* Color swatches */
.swatches { display:grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap:10px; }
.swatch { border:1px solid #334155; border-radius:8px; overflow:hidden; background:#0f172a; }
.swatch .chip { height:46px; }
.swatch .info { padding:6px 8px; }
.swatch .nm { font-size:0.72rem; color:#e2e8f0; font-weight:600; }
.swatch .hex { font-size:0.7rem; color:#64748b; font-family: ui-monospace, monospace; }

/* Fonts pills */
.fonts { display:flex; flex-wrap:wrap; gap:8px; margin-top:4px; }
.font-pill { background:#0f172a; border:1px solid #334155; border-radius:8px; padding:6px 12px; font-size:0.82rem; color:#e2e8f0; }
.font-pill span { color:#64748b; font-size:0.72rem; display:block; }

/* Links / buttons */
.links { display:grid; grid-template-columns: 1fr 1fr; gap:8px; padding:14px 18px; }
.link-btn { display:block; padding:10px 14px; background:#0f172a; border:1px solid #334155; border-radius:8px; color:#e2e8f0; text-decoration:none; font-size:0.84rem; text-align:center; }
.link-btn:hover { background:#253347; border-color:#475569; }
.link-btn.primary { background:#cdec60; border-color:#cdec60; color:#1c352b; font-weight:700; }

/* Callout / note */
.note { margin-top:10px; padding:10px 12px; background:#1a1f2e; border-left:3px solid #facc15; border-radius:6px; font-size:0.8rem; color:#94a3b8; line-height:1.5; }
.note.warn { border-left-color:#f87171; }
.note strong { color:#e2e8f0; }

.tag { display:inline-block; font-size:0.7rem; padding:2px 7px; border-radius:6px; background:#0f172a; border:1px solid #334155; color:#94a3b8; margin:2px 2px 0 0; }

.footer { padding:20px 24px; border-top:1px solid #1e293b; font-size:0.75rem; color:#475569; text-align:center; line-height:1.6; }
.footer a { color:#475569; text-decoration:none; }

@media (max-width: 768px) {
  .grid { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
  .kv li { flex-direction:column; gap:2px; }
  .kv .value { text-align:left; }
  .header { flex-direction:column; align-items:flex-start; }
}
