/**
 * ============================================================
 * File      : blog.css
 * Purpose   : Styles for /blog/ knowledge content pages —
 *             article layout, download card grid, CTA box,
 *             comparison tables, index listing grid.
 * ------------------------------------------------------------
 * Created   : 2026-07-13 15:10
 * Created By: Neo
 * ------------------------------------------------------------
 * Changelog :
 *   - 2026-07-13 [Neo] : Initial creation — blog article +
 *     index styles, download cards, CTA, note, table.
 *   - 2026-07-13 [Neo] : SEO rework — .gov-links official links
 *     block, .blog-figure diagram frame, .blog-faq styles.
 *   - 2026-07-13 [Neo] : Blog platform v1 — byline/reviewed-by,
 *     share bar, services CTA band, related-articles panel,
 *     category filter chips on index.
 * ============================================================
 */

/* ─── Article container ─── */
.blog-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.blog-crumb {
  font-size: 12.5px;
  color: var(--muted, #6b6b6b);
  margin-bottom: 24px;
}
.blog-crumb a { color: inherit; text-decoration: none; }
.blog-crumb a:hover { text-decoration: underline; }
.blog-crumb .sep { margin: 0 6px; opacity: 0.5; }

.blog-header { margin-bottom: 28px; }
.blog-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #B08D3F;
  margin-bottom: 10px;
}
.blog-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
}
.blog-meta { font-size: 13px; color: var(--muted, #6b6b6b); }

/* ─── Article body ─── */
.blog-body { font-size: 15.5px; line-height: 1.75; color: #222; }
.blog-body h2 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 500;
  margin: 36px 0 12px;
}
.blog-body h3 { font-size: 17px; font-weight: 600; margin: 26px 0 10px; }
.blog-body p { margin: 0 0 16px; }
.blog-body ul, .blog-body ol { margin: 0 0 16px; padding-left: 22px; }
.blog-body li { margin-bottom: 8px; }
.blog-body a { color: #0F3D2E; }

/* Comparison / data table */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 8px 0 24px;
}
.blog-table th, .blog-table td {
  border: 1px solid rgba(10,10,10,0.12);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.blog-table th { background: #F4F1E8; font-weight: 600; }

/* Note / disclaimer strip */
.blog-note {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  color: #5D4037;
  line-height: 1.6;
  margin: 28px 0 0;
}

/* CTA box */
.blog-cta {
  background: #0F3D2E;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 36px 0 0;
  color: #fff;
}
.blog-cta h3 { margin: 0 0 8px; font-size: 18px; color: #fff; }
.blog-cta p { margin: 0 0 16px; font-size: 14px; color: rgba(255,255,255,0.75); }
.blog-cta .btn-cta {
  display: inline-block;
  background: #B08D3F;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  text-decoration: none;
}
.blog-cta .btn-cta:hover { background: #C6A254; }

/* ─── Download cards ─── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0 8px;
}
.dl-card {
  background: #fff;
  border: 1px solid rgba(10,10,10,0.1);
  border-radius: 10px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dl-card .dl-name { font-size: 15px; font-weight: 600; }
.dl-card .dl-desc { font-size: 13px; color: var(--muted, #6b6b6b); line-height: 1.5; flex: 1; }
.dl-card .dl-btn {
  display: inline-block;
  align-self: flex-start;
  background: #0F3D2E;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 7px;
  text-decoration: none;
  margin-top: 4px;
}
.dl-card .dl-btn:hover { background: #1B5E40; }

/* Sample image frame */
.blog-img-frame {
  border: 1px solid rgba(10,10,10,0.1);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  margin: 16px 0 24px;
  text-align: center;
}
.blog-img-frame img { max-width: 100%; height: auto; border-radius: 6px; }
.blog-img-frame .caption { font-size: 12.5px; color: var(--muted, #6b6b6b); margin-top: 8px; }

/* ─── Diagram / figure frame ─── */
.blog-figure {
  margin: 20px 0 28px;
  padding: 0;
  text-align: center;
}
.blog-figure img {
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 10px;
  background: #fff;
}
.blog-figure figcaption {
  font-size: 12.5px;
  color: var(--muted, #6b6b6b);
  margin-top: 8px;
}

/* ─── Official government links block ─── */
.gov-links {
  background: #F4F1E8;
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 28px 0 0;
}
.gov-links h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #0F3D2E;
}
.gov-links ul { margin: 0; padding-left: 20px; }
.gov-links li { font-size: 13.5px; margin-bottom: 7px; line-height: 1.5; }
.gov-links .gl-state {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #B08D3F;
  min-width: 86px;
}

/* ─── FAQ block ─── */
.blog-faq { margin-top: 8px; }
.blog-faq .faq-q { font-size: 15.5px; font-weight: 600; margin: 18px 0 6px; }
.blog-faq .faq-a { font-size: 14.5px; margin: 0 0 4px; }

/* ─── Index listing ─── */
.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.blog-index-card {
  background: #fff;
  border: 1px solid rgba(10,10,10,0.1);
  border-radius: 12px;
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s, transform 0.15s;
}
.blog-index-card:hover { border-color: #B08D3F; transform: translateY(-2px); }
.blog-index-card .bi-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #B08D3F;
}
.blog-index-card .bi-title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.blog-index-card .bi-desc { font-size: 13.5px; color: var(--muted, #6b6b6b); line-height: 1.55; flex: 1; }
.blog-index-card .bi-more { font-size: 13px; font-weight: 600; color: #0F3D2E; }

/* ═══ Blog platform v1 (2026-07-13) ═══════════════════════════ */

/* ─── Byline row: reviewed-by + share bar ─── */
.blog-byline {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 12px;
  border-top: 1px solid #E7E2D4;
}
.blog-reviewed {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted, #6b6b6b);
}
.blog-reviewed svg { color: #0F3D2E; flex-shrink: 0; }
.blog-reviewed strong { color: #0F3D2E; font-weight: 600; }
.blog-cat-link { text-decoration: none; display: inline-block; }
.blog-cat-link:hover { text-decoration: underline; }

.blog-share { display: inline-flex; align-items: center; gap: 6px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 9px; border-radius: 14px;
  border: 1px solid #DDD6C4; background: #fff; color: #0F3D2E;
  font-size: 12px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all .15s;
}
.share-btn:hover { background: #0F3D2E; color: #fff; border-color: #0F3D2E; }
.share-btn.is-copied { background: #16A34A; color: #fff; border-color: #16A34A; }

/* ─── Services CTA band (artistic) ─── */
.blog-services-cta {
  position: relative; overflow: hidden; display: flex; align-items: center;
  gap: 22px; margin: 40px 0 8px; padding: 26px 28px; border-radius: 12px;
  background: linear-gradient(120deg, #0F3D2E 0%, #1B5E40 70%, #23744F 100%);
  color: #fff;
}
.blog-services-cta .cta-stamp {
  width: 84px; height: 84px; flex-shrink: 0; color: #D9B45C;
  transform: rotate(-8deg); opacity: .9;
}
.blog-services-cta .cta-copy { flex: 1; min-width: 220px; }
.blog-services-cta .cta-kicker {
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: #D9B45C; margin-bottom: 6px;
}
.blog-services-cta h3 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.blog-services-cta p { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.78); }
.blog-services-cta .cta-go {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 11px 20px; border-radius: 8px; background: #D9B45C; color: #0F3D2E;
  font-size: 14px; font-weight: 700; text-decoration: none; transition: all .15s;
}
.blog-services-cta .cta-go:hover { background: #fff; }
.blog-services-cta .cta-go .cta-arrow { transition: transform .15s; }
.blog-services-cta .cta-go:hover .cta-arrow { transform: translateX(4px); }
@media (max-width: 640px) {
  .blog-services-cta { flex-direction: column; text-align: center; }
  .blog-services-cta .cta-stamp { width: 64px; height: 64px; }
}

/* ─── Related articles panel ─── */
.blog-related { margin: 34px 0 10px; }
.related-heading {
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #0F3D2E; margin: 0 0 14px;
  padding-bottom: 8px; border-bottom: 2px solid #D9B45C;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.related-card {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  border: 1px solid #E7E2D4; border-radius: 10px; background: #FCFBF7;
  text-decoration: none; transition: all .15s;
}
.related-card:hover { border-color: #B08D3F; transform: translateY(-2px); box-shadow: 0 4px 14px rgba(15,61,46,.08); }
.related-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #B08D3F;
}
.related-title { font-size: 14px; font-weight: 600; color: #1a1a1a; line-height: 1.4; }
.related-desc {
  font-size: 12.5px; color: var(--muted, #6b6b6b); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* ─── Index: category filter chips ─── */
.blog-cat-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 26px; }
.cat-chip {
  padding: 7px 16px; border-radius: 18px; border: 1px solid #DDD6C4;
  background: #fff; color: #333; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all .15s;
}
.cat-chip:hover { border-color: #0F3D2E; color: #0F3D2E; }
.cat-chip.is-active { background: #0F3D2E; color: #fff; border-color: #0F3D2E; }
.cat-chip .chip-count { opacity: .6; font-weight: 500; margin-left: 4px; }
.blog-index-card .card-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #B08D3F; margin-bottom: 6px; display: block;
}
