/* moldDB Articles — blog chrome (loaded after the main site style.css) */

:root {
  --blue: #1a73b5;
  --blue-dark: #14567f;
  --ink: #2b2b2b;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f2f2f2;
}

html { scroll-behavior: smooth; }

body { background: var(--bg); color: var(--ink); font-family: 'Lato', Arial, sans-serif; }

.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 20px; }

/* ---------- index hero ---------- */
.blog-hero {
  background: linear-gradient(135deg, #2b3a44 0%, #1a73b5 100%);
  color: #fff;
  padding: 54px 0 46px;
  margin-bottom: 34px;
}
.blog-hero h1 { margin: 0 0 6px; font-size: 2.2rem; letter-spacing: .5px; }
.blog-tagline { margin: 0; opacity: .95; color: #eaf2fa; font-size: 1.05rem; }

/* ---------- post cards ---------- */
.blog-list { max-width: 820px; padding-bottom: 60px; }
.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 30px 22px;
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
  transition: box-shadow .15s ease, transform .15s ease;
}
.post-card:hover { box-shadow: 0 6px 18px rgba(16, 24, 40, .10); transform: translateY(-1px); }
.post-meta { color: var(--muted); font-size: .86rem; margin-bottom: 6px; letter-spacing: .3px; }
.card-title { margin: 0 0 8px; font-size: 1.35rem; line-height: 1.25; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--blue); }
.card-excerpt { color: #4b5563; margin: 0 0 12px; line-height: 1.55; }
.readmore { color: var(--blue); text-decoration: none; font-weight: 600; font-size: .93rem; }
.readmore:hover { color: var(--blue-dark); }

/* ---------- single post ---------- */
.post-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 44px 0 26px;
  margin-bottom: 30px;
}
.post-title { margin: 4px 0 0; font-size: 2rem; line-height: 1.2; color: var(--ink); }
.post-body { padding-bottom: 30px; }
.post-body p, .post-body li { line-height: 1.65; font-size: 1.02rem; color: #333; }
.post-body p { margin: 0 0 1.1em; }
.post-body h4 { margin: 1.4em 0 .5em; }
.post-body img { max-width: 100%; height: auto; border-radius: 6px; }
.post-body figure { margin: 1.4em 0; }
.post-body figcaption { color: var(--muted); font-size: .88rem; margin-top: 6px; }
.post-body table {
  width: 100%; border-collapse: collapse; margin: 1.3em 0; font-size: .95rem;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
}
.post-body th, .post-body td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.post-body thead th { background: #f8fafc; font-weight: 700; }
.post-body tr:nth-child(even) td { background: #fafbfc; }
.post-body blockquote {
  border-left: 3px solid var(--blue); margin: 1.2em 0; padding: 4px 18px; color: #4b5563;
}
.post-backlink { margin-top: 34px; }
.post-backlink a { color: var(--blue); text-decoration: none; font-weight: 600; }
.post-backlink a:hover { color: var(--blue-dark); }

/* ---------- nav tweak: brand area ---------- */
#navbar .navbar-brand { min-width: 130px; }
.topnav .navmenu a { text-transform: uppercase; font-size: .82rem; letter-spacing: .8px; padding: 17px 14px; }

/* ---------- footer already styled by main site (.footing) ---------- */

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .blog-hero h1 { font-size: 1.7rem; }
  .post-title { font-size: 1.5rem; }
  .post-card { padding: 20px 18px 18px; }
}
