/* Blog-only styles. Load after css/style.css. */

/* Blog navigation: keeps the header visible on blog/article pages */
body > header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e9eeeb;
  backdrop-filter: blur(10px);
}
body > header nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
body > header nav h2 {
  margin: 0;
  font-size: 1rem;
  white-space: nowrap;
}
body > header nav ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body > header nav a {
  text-decoration: none;
}
body > header nav ul a {
  font-size: 0.9rem;
  color: #53605a;
}
body > header nav ul a:hover,
body > header nav ul a.active {
  color: #059669;
}

.blog-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}
.blog-hero {
  padding: 100px 0 64px;
  background: #f7faf8;
}
.blog-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #059669;
}
.blog-hero h1 {
  max-width: 820px;
  margin: 0 0 20px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}
.blog-hero p {
  max-width: 760px;
  margin: 0;
  color: #5f6b66;
  font-size: 1.08rem;
  line-height: 1.75;
}
.blog-list {
  padding: 72px 0 100px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid #e6ece8;
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.blog-card:hover {
  transform: translateY(-3px);
  border-color: #a7d8c2;
}
.blog-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: #66736d;
}
.blog-category {
  font-weight: 700;
  color: #059669;
}
.blog-card h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
  line-height: 1.25;
}
.blog-card p {
  margin: 0 0 24px;
  color: #647069;
  line-height: 1.7;
}
.blog-read {
  margin-top: auto;
  font-weight: 700;
  color: #047857;
}

/* Article */
.post-wrap {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
}
.post-header {
  padding: 82px 0 46px;
}
.post-header h1 {
  max-width: 900px;
  margin: 14px 0 20px;
  font-size: clamp(2.5rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.post-description {
  max-width: 820px;
  font-size: 1.12rem;
  line-height: 1.7;
  color: #5f6b66;
}
.post-content {
  padding: 28px 0 90px;
  font-size: 1.125rem;
  line-height: 1.85;
  color: #26332d;
}
.post-content p {
  margin: 0 0 1.45em;
}
.post-content h2 {
  margin: 52px 0 16px;
  font-size: 1.85rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.post-content h3 {
  margin: 36px 0 12px;
  font-size: 1.35rem;
}
.post-content ul,
.post-content ol {
  margin: 0 0 1.6em;
  padding-left: 1.5em;
}
.post-content li {
  margin-bottom: 0.45em;
}
.post-content a {
  color: #047857;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}
.post-back {
  display: inline-block;
  margin-bottom: 24px;
  color: #047857;
  text-decoration: none;
  font-weight: 700;
}
.blog-empty {
  padding: 28px;
  border: 1px dashed #cbd8d1;
  border-radius: 16px;
  color: #66736d;
}

@media (max-width: 900px) {
  body > header nav {
    align-items: flex-start;
    padding: 18px 0;
    flex-direction: column;
    gap: 14px;
  }
  body > header nav ul {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-hero {
    padding: 72px 0 50px;
  }
  .blog-list {
    padding: 52px 0 76px;
  }
  .post-wrap {
    width: min(100% - 32px, 900px);
  }
  .post-header {
    padding: 58px 0 34px;
  }
  .post-header h1 {
    font-size: clamp(2.15rem, 10vw, 2.8rem);
    line-height: 1.08;
  }
  .post-description {
    font-size: 1.02rem;
  }
  .post-content {
    font-size: 1.04rem;
    line-height: 1.8;
    padding-top: 18px;
  }
  .post-content h2 {
    font-size: 1.55rem;
    margin-top: 42px;
  }
}
