/* Email-safe styles — inlined by premailer-rails at send time.
   Uses static hex values (email clients don't support CSS custom properties or oklch).
   Colours aligned with carespective-www design tokens. */

/* ── Reset ── */
body {
  margin: 0;
  padding: 0;
  width: 100% !important;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

table {
  border-collapse: collapse;
  mso-table-lspace: 0;
  mso-table-rspace: 0;
}

img {
  border: 0;
  outline: none;
  text-decoration: none;
}

/* ── Typography ── */
.email-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1a2845; /* --ink, dark navy */
}

h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1a2845; /* --ink */
  margin: 0 0 8px;
}

p {
  margin: 0 0 16px;
}

/* ── Layout ── */
.email-wrapper {
  background-color: #f5f5f4; /* --bg-soft, warm stone */
  padding: 32px 16px;
}

.email-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

/* ── Header ── */
.email-header {
  background-color: #f0fdfa; /* light teal, matches carespective.com */
  padding: 24px 32px;
  text-align: center;
}

.email-header-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0f766e; /* --brand-700, deep teal */
  text-decoration: none;
}

/* ── Content ── */
.email-content {
  padding: 32px;
}

/* ── CTA Button ── */
.email-button {
  display: inline-block;
  background-color: #0d9488; /* --brand-600, care teal */
  color: #ffffff !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 6px;
  text-align: center;
}

/* ── Footer ── */
.email-footer {
  padding: 20px 32px;
  text-align: center;
  border-top: 1px solid #e4e4e7;
}

.email-footer-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: #64748b; /* --muted, slate gray */
  margin: 0;
}

/* ── Detail table (label / value rows) ── */
.email-details {
  margin: 0 0 16px;
}

.email-details-label {
  font-weight: 600;
  color: #1a2845; /* --ink */
  padding: 4px 16px 4px 0;
  vertical-align: top;
  white-space: nowrap;
}

.email-details-value {
  color: #1a2845; /* --ink */
  padding: 4px 0;
  vertical-align: top;
}

/* ── Dark Mode ── */
@media (prefers-color-scheme: dark) {
  .email-wrapper {
    background-color: #1e293b !important; /* slate-800 */
  }
  .email-container {
    background-color: #0f172a !important; /* slate-900 */
  }
  .email-body {
    color: #e2e8f0 !important; /* slate-200 */
  }
  h2 {
    color: #f8fafc !important; /* slate-50 */
  }
  .email-details-label {
    color: #f8fafc !important;
  }
  .email-details-value {
    color: #e2e8f0 !important; /* slate-200 */
  }
  .email-footer {
    border-top-color: #334155 !important; /* slate-700 */
  }
  .email-footer-text {
    color: #94a3b8 !important; /* slate-400 */
  }
}
