/* 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: linear-gradient(135deg, #2b3a44 0%, #1a73b5 100%);
  color: #fff;
  padding: 46px 0 38px;
  margin-bottom: 34px;
}
.post-hero .post-meta { color: #cfe2f3; }
.post-hero .post-meta time { color: #cfe2f3; }
.post-title { margin: 6px 0 0; font-size: 2.1rem; line-height: 1.2; color: #fff; letter-spacing: .3px; }
.post-body {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
  padding: 34px 38px 30px;
  margin-bottom: 34px;
}
.post-body p, .post-body li { color: #3d4753; font-size: 1.02rem; line-height: 1.75; }
.post-body p { margin: 0 0 1.1em; }
.post-body a { color: var(--blue); }
.post-body a:hover { color: var(--blue-dark); text-decoration: underline; }
.post-body h2, .post-body h3, .post-body h4 { color: var(--ink); margin: 1.5em 0 .5em; line-height: 1.3; }
.post-body h2 { font-size: 1.45rem; border-bottom: 2px solid #eef3f8; padding-bottom: .25em; }
.post-body h3 { font-size: 1.18rem; }
.post-body img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(16,24,40,.08); margin: 6px 0 18px; }
.post-body figure { margin: 18px 0; }
.post-body figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.post-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.post-body thead th { background: #f4f8fc; color: var(--ink); }
.post-body tr:nth-child(even) td { background: #fafcfe; }
.post-body blockquote { border-left: 3px solid var(--blue); margin: 18px 0; padding: 4px 18px; color: var(--muted); background: #f8fbfe; border-radius: 0 6px 6px 0; }
.post-backlink { margin: -6px 0 26px; font-size: .92rem; 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; }
}

/* ---------- pagination ---------- */
.pager { display: flex; gap: 8px; justify-content: center; align-items: center; margin: 26px 0 40px; flex-wrap: wrap; }
.pager-link {
  display: inline-block; min-width: 38px; padding: 7px 12px; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font-size: .92rem; text-decoration: none;
  transition: border-color .12s ease, color .12s ease, transform .12s ease;
}
.pager-link:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.pager-current { background: var(--blue); border-color: var(--blue); color: #fff; }
.pager-current:hover { color: #fff; transform: none; }
