/* Joblancer blog: index, articles and editorial policy */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.7;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

.crumbs { font-size: 0.9rem; color: #666; margin: 2.5rem 0 1rem; }
.crumbs a { color: #1d4ed8; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Index */
.blog-index { padding-top: 0.5rem; padding-bottom: 4rem; }
.blog-index h1 { font-size: 2.4rem; line-height: 1.2; color: #1a1a1a; margin-bottom: 0.75rem; }
.blog-index .intro { font-size: 1.1rem; color: #444; max-width: 760px; margin-bottom: 2.5rem; }
.blog-index .intro a,
.blog-article a { color: #1d4ed8; }

.post-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
.post-card {
  background: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 14px;
  overflow: hidden;
}
.post-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.post-card img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; }
.post-card h2 { font-size: 1.25rem; line-height: 1.35; color: #1a1a1a; margin: 1.1rem 1.25rem 0.5rem; }
.post-card p { color: #444; font-size: 0.98rem; margin: 0 1.25rem 0.9rem; }
.post-meta { display: block; font-size: 0.85rem; color: #777; margin: 0 1.25rem 1.25rem; }
.post-card-link:hover h2 { color: #1d4ed8; }

/* Article */
.blog-article { max-width: 760px; padding-bottom: 3rem; }
.blog-article h1 { font-size: 2.3rem; line-height: 1.2; color: #1a1a1a; margin-bottom: 0.6rem; }
.blog-article .byline { font-size: 0.92rem; color: #666; margin-bottom: 1.75rem; }
.blog-article .hero { margin-bottom: 2rem; }
.blog-article .hero img { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid #e1e8ed; }
.blog-article .hero figcaption { font-size: 0.85rem; color: #777; margin-top: 0.5rem; }
.prose p { color: #333; font-size: 1.05rem; margin-bottom: 1.15rem; }
.prose h2 { font-size: 1.5rem; line-height: 1.3; color: #1a1a1a; margin: 2.4rem 0 0.9rem; }
.prose h3 { font-size: 1.1rem; color: #1a1a1a; margin: 1.4rem 0 0.4rem; }
.prose ul { margin: 0 0 1.2rem 1.4rem; }
.prose li { font-size: 1.02rem; margin-bottom: 0.45rem; }
.sources,
.faq { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #e1e8ed; }
.disclaimer { font-size: 0.9rem; color: #666; margin-top: 2rem; }
.editorial-principle { font-size: 1.1rem; margin-top: 2rem; padding-left: 1rem; border-left: 3px solid #1d4ed8; }

/* Footer and header match the rest of the site */
footer { background: #fff; border-top: 1px solid #e1e8ed; padding: 2.5rem 0 1.5rem; font-size: 0.95rem; color: #666; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr !important; gap: 2rem; margin-bottom: 2rem; }
.footer-brand img { width: 12rem; height: auto; display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.95rem; max-width: 280px; }
.footer-grid h4 { font-size: 0.95rem; color: #222; margin-bottom: 0.75rem; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: #555; text-decoration: none; }
.footer-grid a:hover { color: #1d4ed8; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; border-top: 1px solid #e1e8ed; padding-top: 1.25rem; font-size: 0.85rem; color: #888; }

/* Three posts in one row on desktop, two on tablets, one on phones */
@media (min-width: 600px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* Phones: 16px gutter, no horizontal scroll */
@media (max-width: 760px) {
  .container { padding: 0 1rem; }
  .blog-index h1 { font-size: 1.85rem; }
  .blog-article h1 { font-size: 1.85rem; }
  .prose h2 { font-size: 1.3rem; }
  .prose p, .prose li { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 1.75rem 1.25rem; }
  .footer-brand { grid-column: 1 / -1; }
}
