/* Vatiqa – blog (list, categories, article). Loaded only on /blog pages. */
.blog-head { background: linear-gradient(180deg, var(--mist), #fff); padding: 26px 0 18px; border-bottom: 1px solid var(--line); }
.blog-head h1 { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.7rem); margin: 4px 0 0; color: var(--leaf-dark); letter-spacing: -0.02em; }

.blog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; padding-top: 28px; padding-bottom: 48px; align-items: start; }
.blog-layout-post { grid-template-columns: minmax(0, 1fr) 260px; }

/* sidebar: search + link list */
.blog-side { position: sticky; top: 140px; display: grid; gap: 22px; }
.blog-search { display: flex; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.blog-search input { flex: 1; min-width: 0; border: 0; padding: 11px 16px; font: inherit; background: transparent; }
.blog-search input:focus { outline: none; }
.blog-search:focus-within { border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(47, 122, 85, .15); }
.blog-search button { border: 0; background: var(--leaf); color: #fff; width: 46px; cursor: pointer; display: grid; place-items: center; }
.blog-links h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 8px; }
.blog-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.blog-links a { display: block; padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.3; }
.blog-links a:hover { background: var(--mist); color: var(--leaf); }
.blog-links a[aria-current="page"] { background: var(--leaf); color: #fff; font-weight: 700; }

/* cards */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(19, 61, 42, .35); }
.blog-cover { display: block; aspect-ratio: 5 / 3; background: var(--mist); overflow: hidden; }
.blog-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .blog-cover img { transform: scale(1.04); }
.blog-card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { font-size: .82rem; color: var(--muted); margin: 0 0 6px; }
.blog-meta span { margin: 0 4px; opacity: .6; }
.blog-title { font-family: var(--display); font-size: 1.08rem; line-height: 1.3; margin: 0 0 8px; }
.blog-title a { color: var(--ink); text-decoration: none; }
.blog-title a:hover { color: var(--leaf); }
.blog-excerpt { color: var(--muted); font-size: .92rem; line-height: 1.5; margin: 0 0 12px; }
.blog-more { margin-top: auto; align-self: flex-start; font-weight: 700; color: var(--leaf); text-decoration: none; border-bottom: 2px solid var(--sun); padding-bottom: 1px; }
.blog-more:hover { color: var(--leaf-dark); }
.blog-found { margin: 0 0 16px; }

/* article */
.blog-post h1 { font-family: var(--display); font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; margin: 6px 0 8px; color: var(--leaf-dark); letter-spacing: -0.02em; }
.blog-hero { margin: 16px 0 22px; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); aspect-ratio: 15 / 8; }
.blog-hero img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { font-size: 1.05rem; line-height: 1.75; max-width: 72ch; }
.blog-body h2 { font-family: var(--display); font-size: 1.35rem; margin: 1.6em 0 .4em; color: var(--leaf-dark); }
.blog-body ul, .blog-body ol { padding-left: 1.3em; }
.blog-body li { margin: .35em 0; }
.blog-body a { color: var(--leaf); font-weight: 600; }
.blog-share { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.blog-related { padding-bottom: 56px; }
.blog-related h2 { font-family: var(--display); margin: 0 0 16px; }

@media (max-width: 1080px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .blog-layout, .blog-layout-post { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .blog-side { position: static; }
  .blog-layout:not(.blog-layout-post) .blog-links ul { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .blog-layout:not(.blog-layout-post) .blog-links a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; }
  .blog-layout-post .blog-side { order: 2; }
}
@media (max-width: 640px) {
  .blog-grid, .blog-grid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card, .blog-cover img { transition: none; }
}
/* square illustrations: show the whole plant instead of cropping */
.blog-hero:has(img[src$=".svg"]) { aspect-ratio: auto; max-width: 520px; }
.blog-hero img[src$=".svg"] { height: auto; aspect-ratio: 1; }
.blog-cover img[src$=".svg"] { object-position: center 70%; }
.blog-side, .blog-side > *, .blog-main { min-width: 0; }
