/* ============================================================
   Nivasa Green City - Blog styles
   Extends css/styles.css (same tokens). Loaded only on /blog/ pages.
   ============================================================ */

/* honeypot fallback (in case styles.css load order changes) */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* active blog nav link */
.nav__link[aria-current="page"] { color: var(--gold-3); }

/* ---------- Blog landing ---------- */
.blog-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 10px;
}
@media (min-width: 720px) {
  .blog-cards { grid-template-columns: repeat(2, 1fr); }
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  color: var(--ink);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.blog-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.05); }
.blog-card__body { padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card__tag {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 700; color: var(--gold-3);
}
.blog-card__title { font-family: var(--font-head); font-weight: 600; font-size: 1.4rem; line-height: 1.2; color: var(--green-800); }
.blog-card__excerpt { color: var(--muted); font-size: 0.98rem; line-height: 1.6; }
.blog-card__date { margin-top: auto; font-size: 0.82rem; color: var(--muted); padding-top: 8px; }
.blog-card__more { color: var(--gold-3); font-weight: 600; font-size: 0.9rem; }

/* ---------- Post layout ---------- */
.post { max-width: 760px; margin-inline: auto; }

.crumb { font-size: 0.84rem; color: var(--muted); margin-bottom: 22px; }
.crumb a { color: var(--green-600); }
.crumb a:hover { color: var(--gold-3); }
.crumb .sep { margin: 0 8px; color: var(--gold-1); }
.crumb [aria-current="page"] { color: var(--ink); }

.post__head { margin-bottom: 26px; }
.post__head h1 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.9rem, 4.2vw, 2.8rem); line-height: 1.14; color: var(--green-800);
  margin-top: 8px;
}
.post__meta { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }

.post__hero { margin: 0 0 36px; }
.post__hero img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.post__hero figcaption {
  margin-top: 10px; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--muted); text-align: center;
}

/* ---------- Prose ---------- */
.prose { color: var(--ink); font-size: 1.06rem; line-height: 1.85; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.25; color: var(--green-800); margin-top: 1.9em;
}
.prose h3 {
  font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; color: var(--green-700); margin-top: 1.5em;
}
.prose a {
  color: var(--green-600); text-decoration: underline;
  text-decoration-color: var(--gold-1); text-underline-offset: 3px;
}
.prose a:hover { color: var(--gold-3); }
.prose strong { color: var(--green-800); font-weight: 700; }
.prose ul { list-style: none; padding-left: 0; display: grid; gap: 12px; }
.prose ul li { position: relative; padding-left: 30px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 0.68em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-grad);
}
.prose blockquote {
  border-left: 3px solid var(--gold-1); padding: 4px 0 4px 22px;
  font-family: var(--font-head); font-style: italic; color: var(--green-700);
}
.prose figure img { border-radius: var(--radius-sm); }

/* ---------- In-article CTA ---------- */
.post-cta {
  background: var(--green-800); color: var(--cream);
  border-radius: var(--radius); padding: clamp(28px, 5vw, 44px);
  margin: 2.4em 0; box-shadow: var(--shadow);
}
.post-cta .eyebrow { color: var(--gold-2); }
.post-cta h2 {
  font-family: var(--font-head); color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.25; margin: 6px 0 12px;
}
.post-cta p { color: #d8d3c7; }
.post-cta__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }

/* ---------- Read next ---------- */
.readnext {
  margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.readnext .lbl { font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--gold-3); }
.readnext a { font-family: var(--font-head); font-size: 1.2rem; color: var(--green-700); }
.readnext a:hover { color: var(--gold-3); }
.readnext .arr { display: inline-block; transition: transform 0.25s var(--ease); }
.readnext a:hover .arr { transform: translateX(4px); }

/* ---------- Blog landing closing CTA ---------- */
.blog-index__cta { margin-top: 54px; }
