/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Newsletter markdown link styling (match email look) */
.markdown-newsletter a {
  color: inherit;
  text-decoration: none;
}

.markdown-newsletter a:hover {
  text-decoration: underline;
}

.markdown-newsletter img {
  border-radius: 4px;
  max-width: 100%; /* mobile-first: full width */
  height: auto;
  display: block; /* Center images via margin auto for web issue page */
  margin: 0 auto;
  /* NOTE: Keep this in sync with app/views/layouts/mailer.html.erb so web + email match */
}
@media (min-width: 640px) {
  .markdown-newsletter img {
    max-width: 50%; /* desktop/tablet: half width */
  }
}

/* Avoid fixed header overlap on anchor navigation in web UI */
.markdown-newsletter h3 {
  scroll-margin-top: 72px; /* adjust to match header height */
}

/* Increase vertical spacing around separators (keep in sync with mailer CSS) */
.markdown-newsletter hr {
  margin: 24px auto;
  width: 95%;
  opacity: 0.5;
}
