/* Shared design tokens — loaded before each app's own stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── Reset + body base — every page gets this from here, not per-app ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body, 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif);
  background-color: #f4f5f6;
  color: #1a1a1a;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.5;
}

:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --color-dark: #1a1a1a;
  --color-gold: #d4a937;
  --color-gold-muted: #b8943a;
  --color-bg: #f5f1eb;
  --color-surface: #ffffff;
  --color-border: #e8dfc8;
  --shadow-card: 0 1px 3px rgba(139,107,43,0.07), 0 4px 20px rgba(139,107,43,0.06);
  --shadow-card-hover: 0 4px 14px rgba(139,107,43,0.15), 0 8px 28px rgba(139,107,43,0.08);
  --radius-card: 12px;
}

/* ── SVG icon system ── */
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  position: relative;
  top: -0.05em;
}

/* ── Shared header chrome (dark bar, used across every app page) ── */
header {
  background-color: #1a1a1a;
  color: #94a3b8;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(148,163,184,0.25);
}

header h1 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
}

header p {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Top-right header action link (Log Out, back to Dashboard, etc.) */
.btn-header-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid #64748b;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-header-link:hover { color: #94a3b8; border-color: #94a3b8; }

/* ── Shared header brand block (logo above title, stacked + centered —
   matches Contact Planner's own header-brand pattern) ── */
.header-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.header-logo {
  width: auto;
  height: 28px;
  object-fit: contain;
  border-radius: 0;
  margin-bottom: 0.3rem;
}

/* ── Two-row header: centered brand row, then a divider + action row below
   (back link, log out, etc.) — same structure as Contact Planner's header,
   recolored to this portal's own charcoal/silver palette instead of gold. ── */
.header-brand-row {
  display: flex;
  justify-content: center;
  padding: 0.7rem 1rem 0.45rem;
}

.header-brand-row .header-brand h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.header-brand-row .header-brand p {
  font-size: 0.65rem;
  color: #94a3b8;
  margin-top: 0.1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-brand-row .header-logo {
  width: auto;
  height: 24px;
  margin-bottom: 0.25rem;
}

.header-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.3rem 1rem 0.45rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
