/* ===================================
   MailPing News – Editorial Layout
   Clean, Document-Style Structure
=================================== */

/* -----------------------------------
   Base Reset
----------------------------------- */

html, body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #111;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* -----------------------------------
   Header
----------------------------------- */

.news-header {
  height: 64px;
  border-bottom: 1px solid #eee;
  background: #ffffff;
  display: flex;
  align-items: center;
}

.news-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.news-header img {
  height: 36px;
  width: auto;
  display: block;
}

/* -----------------------------------
   Article Container
----------------------------------- */

.news-article {
  max-width: 760px;
  margin: 60px auto 80px auto;
  padding: 40px 24px 0 24px;
  border-top: 1px solid #eee;
}

/* -----------------------------------
   Typography
----------------------------------- */

.news-category {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 16px;
}

.news-article h1 {
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 700;
}

.news-subtitle {
  font-size: 20px;
  color: #555;
  margin-bottom: 28px;
}

.news-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 40px;
}

.news-article h2 {
  font-size: 27px;
  margin-top: 56px;
  margin-bottom: 18px;
  font-weight: 700;
}

.news-article h3 {
  font-size: 20px;
  margin-top: 36px;
  margin-bottom: 12px;
}

.news-article p {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 22px;
  color: #222;
}

.news-article ul {
  padding-left: 20px;
  margin-bottom: 22px;
}

.news-article li {
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 8px;
}

/* Links */

.news-article a {
  color: #000;
  text-decoration: underline;
}

.news-article a:hover {
  text-decoration: none;
}

/* -----------------------------------
   Breadcrumbs
----------------------------------- */

.breadcrumbs {
  font-size: 14px;
  margin-bottom: 18px;
  color: #777;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.breadcrumbs a {
  text-decoration: none;
  color: #555;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

/* -----------------------------------
   Hero Image
----------------------------------- */

.news-hero {
  margin: 40px 0 50px 0;
}

.news-hero img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.news-caption {
  font-size: 14px;
  color: #777;
  margin-top: 10px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* -----------------------------------
   Diagram Permalink
----------------------------------- */

.diagram-link {
  font-size: 12px;
  margin-top: 6px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  opacity: 0.7;
}

.diagram-link a {
  text-decoration: none;
  color: #777;
}

.diagram-link a:hover {
  text-decoration: underline;
}

/* -----------------------------------
   Pull Quote
----------------------------------- */

.pull-quote {
  font-size: 23px;
  line-height: 1.55;
  margin: 50px 0;
  padding-left: 22px;
  border-left: 4px solid #000;
  font-style: italic;
  color: #222;
}

/* -----------------------------------
   Code / Technical Blocks
----------------------------------- */

.news-article pre {
  background: #f5f5f5;
  padding: 18px;
  border-radius: 6px;
  overflow-x: auto;
  font-size: 15px;
}

.news-article code {
  font-family: Consolas, monospace;
}

/* -----------------------------------
   Tags Section
----------------------------------- */

.news-tags {
  margin-top: 60px;
  font-size: 14px;
  color: #666;
}

.news-tags span {
  margin-right: 10px;
  font-weight: 600;
}

.news-tags a {
  margin-right: 12px;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #ccc;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.news-tags a:hover {
  border-bottom: 1px solid #000;
}

/* -----------------------------------
   Author Box
----------------------------------- */

.author-box {
  display: flex;
  gap: 20px;
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.author-avatar img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info strong {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

.author-info p {
  font-size: 16px;
  margin-top: 8px;
  color: #444;
}

/* -----------------------------------
   Related Articles
----------------------------------- */

.related-articles {
  margin-top: 70px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.related-articles h3 {
  font-size: 20px;
  margin-bottom: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.related-articles ul {
  list-style: none;
  padding-left: 0;
}

.related-articles li {
  margin-bottom: 14px;
}

.related-articles a {
  font-size: 17px;
  text-decoration: none;
  color: #000;
}

.related-articles a:hover {
  text-decoration: underline;
}

/* -----------------------------------
   Footer Spacing
----------------------------------- */

#footer-placeholder {
  margin-top: 80px;
}

/* -----------------------------------
   Responsive Adjustments
----------------------------------- */

@media (max-width: 768px) {

  .news-header-inner {
    padding: 0 20px;
  }

  .news-article {
    margin: 40px auto 60px auto;
    padding: 0 20px;
  }

  .news-article h1 {
    font-size: 30px;
  }

  .news-article p,
  .news-article li {
    font-size: 17px;
  }

  .author-box {
    flex-direction: column;
  }

}