/* ============================================================
   Diligent - /blog/ index (redesign frame).
   Loads ON TOP of styles.css + service-v3.css via ServiceLayout's
   head slot. All selectors namespaced .blg-* so nothing collides
   with the frame. Tokens only - no new colors.
   ============================================================ */

/* ---- hero ---- */
.blg-hero { padding: 56px 0 44px; }
.blg-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: end; }
.blg-hero h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -.03em; max-width: 18ch; }
.blg-hero h1 .hl { color: var(--coral-deep); }
.blg-hero .lead { font-size: 1.15rem; color: var(--muted); margin-top: 18px; line-height: 1.62; max-width: 56ch; }
/* aggregate counters - same mono treatment as the case-stories hero stats */
.blg-hero-stats { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--bone-card); box-shadow: var(--shadow-sm); overflow: hidden; }
.blg-hstat { display: flex; align-items: baseline; gap: 14px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.blg-hstat:last-child { border-bottom: none; }
.blg-hstat .v { font-family: var(--mono); font-size: 1.55rem; font-weight: 600; letter-spacing: -.04em; color: var(--coral-deep); line-height: 1; min-width: 2.4ch; }
.blg-hstat .l { font-size: .95rem; color: var(--muted); }

/* ---- featured (latest) post ---- */
.blg-featured { padding: 60px 0; }
.blg-feat-card { display: grid; grid-template-columns: 1.05fr .95fr; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--ink); color: var(--on-dark-mut); box-shadow: var(--shadow-lg); }
.blg-feat-copy { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.blg-feat-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }
.blg-feat-card h2 { color: var(--on-dark); font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -.02em; line-height: 1.16; margin: 14px 0 12px; }
.blg-feat-card p { font-size: 1.02rem; line-height: 1.6; margin-bottom: 24px; }
.blg-feat-meta { display: flex; gap: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--on-dark-mut); margin-bottom: 22px; }
.blg-feat-img { position: relative; min-height: 300px; background: var(--accent-grad); }
.blg-feat-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---- filter chips (same pattern as the case-stories index) ---- */
.blg-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 30px; }
.blg-chip { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: var(--ink);
  background: var(--bone-card); border: 1px solid var(--line); border-radius: 100px; padding: 9px 18px;
  cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.blg-chip:hover { border-color: var(--coral); color: var(--coral-deep); }
.blg-chip.is-active { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }

/* ---- article grid ---- */
.blg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.blg-card { display: flex; flex-direction: column; background: var(--bone-card); border: 1px solid var(--line);
  border-radius: 15px; overflow: hidden; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.blg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(236,106,76,.4); }
.blg-card-img { aspect-ratio: 16 / 9; width: 100%; overflow: hidden; background: var(--bone-2); border-bottom: 1px solid var(--line); }
.blg-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.blg-card:hover .blg-card-img img { transform: scale(1.04); }
.blg-card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.blg-card-meta { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.blg-card-meta .ct { color: var(--coral-deep); }
.blg-card h3 { font-size: 1.12rem; letter-spacing: -.015em; line-height: 1.2; color: var(--ink); }
.blg-card p { font-size: .92rem; color: var(--muted); line-height: 1.55; margin-top: 9px; flex: 1; }
.blg-card .blg-go { margin-top: 16px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--coral-deep); display: inline-flex; align-items: center; gap: 7px; }
.blg-card .blg-go .arrow { transition: transform .25s ease; }
.blg-card:hover .blg-go .arrow { transform: translateX(4px); }
.blg-hide { display: none; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .blg-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .blg-grid { grid-template-columns: 1fr 1fr; }
  .blg-feat-card { grid-template-columns: 1fr; }
  .blg-feat-img { min-height: 240px; order: -1; }
}
@media (max-width: 600px) {
  .blg-grid { grid-template-columns: 1fr; }
  .blg-feat-copy { padding: 28px 24px; }
}
