/*
 * Email styles. Linked from app/views/layouts/mailer.html.erb and inlined
 * onto matching elements by premailer-rails at delivery time. Keep selectors
 * simple (class or type) — premailer applies them as style="" attributes.
 *
 * Visual language matches the welcome email: letter-style, no card chrome,
 * system font, sober palette, accent cyan only on links and emphasis.
 */

/* Scoped to .email-body (not bare `body`) because Propshaft's stylesheet_link_tag
 * pulls every CSS file in app/assets/stylesheets/ into every page in the app —
 * a bare `body` rule here would override the app's dark-mode background. */
.email-body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
}

.email-wrapper {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 600px;
  margin: 0 auto;
  padding: 32px 24px 48px;
  color: #52525b;
  font-size: 15px;
  line-height: 1.55;
}

.email-eyebrow {
  margin: 0 0 24px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.email-headline {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: #18181b;
}

.email-p {
  margin: 0 0 16px;
  color: #52525b;
}

.email-em {
  color: #18181b;
  font-weight: 600;
}

.email-link {
  color: #01B2FF;
  text-decoration: underline;
}

.email-meta {
  color: #a1a1aa;
  font-size: 13px;
}

.email-divider {
  border: 0;
  border-top: 1px solid #e4e4e7;
  margin: 32px 0 24px;
  height: 0;
}

.email-footer {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.6;
  color: #a1a1aa;
}

.email-footer-link {
  color: #71717a;
  text-decoration: underline;
}

/* Digest-specific */
.email-group {
  margin: 24px 0;
}

.email-group-name {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: #18181b;
}

.email-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.email-list-item {
  margin: 0 0 10px;
  padding: 0;
  color: #52525b;
}

.email-list-item-meta {
  color: #a1a1aa;
}
