/* Buttondown Email Newsletter Styles - Compatible with Email Clients */

/* Email-safe typography */
body:not(.quarto-light):not(.quarto-dark),
.newsletter-body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

body:not(.quarto-light):not(.quarto-dark) {
  max-width: 600px;
  margin: 0 auto;
}

/* Newsletter header */
.newsletter-masthead,
.newsletter-header {
  background-color: #581c87;
  color: #ffffff;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.newsletter-masthead h1,
.newsletter-header h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 10px 0;
  color: #ffffff;
}

.newsletter-masthead em,
.newsletter-header em {
  font-size: 16px;
  font-style: italic;
  color: #e0e7ff;
}

/* Company name styling */
.newsletter-masthead strong,
.newsletter-header strong {
  display: block;
  font-size: 14px;
  margin-top: 15px;
  color: #e0e7ff;
}

/* Palestine banner */
.palestine-banner {
  background-color: #14b8a6;
  color: #ffffff;
  padding: 10px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 20px;
}

/* Newsletter body content */
.newsletter-body {
  padding: 0 20px;
}

.newsletter-body h2 {
  color: #581c87;
  font-size: 20px;
  font-weight: bold;
  margin: 25px 0 15px 0;
  border-bottom: 2px solid #14b8a6;
  padding-bottom: 5px;
}

.newsletter-body h3 {
  color: #374151;
  font-size: 16px;
  font-weight: bold;
  margin: 20px 0 10px 0;
}

/* Newsletter footer */
.newsletter-footer {
  background-color: #f9fafb;
  padding: 20px;
  margin-top: 30px;
  border-top: 3px solid #581c87;
  font-size: 14px;
}

.newsletter-footer h3 {
  color: #581c87;
  font-size: 16px;
  font-weight: bold;
  margin: 20px 0 10px 0;
}

.newsletter-footer p {
  margin: 10px 0;
  line-height: 1.5;
}

/* Links styling */
body:not(.quarto-light):not(.quarto-dark) a,
.newsletter-body a,
.newsletter-footer a,
.newsletter-preferences a {
  color: #581c87;
  text-decoration: none;
}

body:not(.quarto-light):not(.quarto-dark) a:hover,
.newsletter-body a:hover,
.newsletter-footer a:hover,
.newsletter-preferences a:hover {
  color: #14b8a6;
  text-decoration: underline;
}

/* Strategy definitions */
.strategy-definition {
  background-color: #ffffff;
  padding: 15px;
  margin: 10px 0;
  border-left: 4px solid #14b8a6;
  font-size: 15px;
}

/* Contact information */
.contact-info {
  background-color: #ffffff;
  padding: 15px;
  margin: 15px 0;
}

.contact-info strong {
  color: #581c87;
  display: block;
  margin-bottom: 5px;
}

/* Legal disclaimers */
.legal-disclaimers {
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
  margin: 20px 0;
  padding: 15px;
  background-color: #f3f4f6;
  border-radius: 5px;
}

/* Copyright */
.copyright {
  text-align: center;
  font-size: 12px;
  color: #6b7280;
  margin-top: 20px;
  padding: 10px;
  border-top: 1px solid #e5e7eb;
}

/* Newsletter preferences */
.newsletter-preferences {
  text-align: center;
  margin: 15px 0;
  font-size: 14px;
}

.newsletter-preferences a {
  color: #581c87;
  font-weight: bold;
  text-decoration: none;
  margin: 0 10px;
}

/* Simple responsive design - basic media queries for email */
@media screen and (max-width: 480px) {
  body:not(.quarto-light):not(.quarto-dark),
  .newsletter-body {
    font-size: 14px;
  }
  
  .newsletter-masthead,
  .newsletter-header {
    padding: 15px;
  }
  
  .newsletter-masthead h1,
  .newsletter-header h1 {
    font-size: 24px;
  }
  
  .newsletter-footer {
    padding: 15px;
  }
}

/* Colophon (Buttondown specific) */
.newsletter-colophon,
.colophon {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin: 20px 0;
  padding: 10px;
  background-color: #f9fafb;
  border-radius: 5px;
}
