/* CINDA Blog — index + article styles. Loads alongside ../styles.css */

/* ─── Blog index ─── */
.blog-hero { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.blog-hero .eyebrow { margin-bottom: 16px; }
.blog-hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(40px, 5vw, 64px); line-height: 1.04; letter-spacing: -.025em;
  color: var(--petrol); max-width: 16ch;
}
.blog-hero p { margin-top: 18px; max-width: 620px; font-size: 19px; color: var(--ink-2); line-height: 1.55; }

/* Category filter row */
.blog-filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px;
}
.blog-filters button {
  font-family: var(--font-label); font-size: 13px; font-weight: 600;
  letter-spacing: .02em; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); padding: 8px 16px;
  cursor: pointer; transition: all .15s; border-radius: 999px;
}
.blog-filters button:hover { border-color: var(--petrol); color: var(--petrol); }
.blog-filters button.active { background: var(--petrol); color: #fff; border-color: var(--petrol); }

/* Featured post */
.featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  margin-top: 40px; border: 1px solid var(--line); background: #fff;
}
.featured .feat-body { padding: 48px 44px; display: flex; flex-direction: column; gap: 16px; }
.featured .feat-side {
  background: var(--petrol); color: var(--sand);
  padding: 48px 40px; display: flex; flex-direction: column; justify-content: space-between;
  border-left: 4px solid var(--coral);
}
.featured .feat-side .lbl {
  font-family: var(--font-label); font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--coral); font-weight: 700;
}
.featured .feat-side .big-date {
  font-family: var(--font-display); font-weight: 500; font-size: 40px;
  letter-spacing: -.02em; line-height: 1.05; margin-top: 8px;
}
.featured .feat-side .big-date span { display: block; font-size: 18px; color: rgba(243,237,226,.7); }
.featured h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 34px;
  line-height: 1.12; letter-spacing: -.02em; color: var(--petrol);
}
.featured h2 a:hover { color: var(--coral-deep); }
.featured p { font-size: 16px; color: var(--ink-2); line-height: 1.6; }

/* Card grid */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin-top: 24px; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.post-card {
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 32px 30px; background: #fff; display: flex; flex-direction: column; gap: 14px;
  transition: background .15s;
}
.post-card:hover { background: var(--coral-bg); }
.post-card .meta-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--font-label); font-size: 11.5px; letter-spacing: .04em;
  color: var(--mute); font-weight: 600;
}
.cat-chip {
  font-family: var(--font-label); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; font-weight: 700; color: var(--coral-deep);
}
.post-card h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 22px;
  line-height: 1.18; letter-spacing: -.01em; color: var(--petrol);
}
.post-card:hover h3 { color: var(--coral-deep); }
.post-card p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.post-card .more {
  margin-top: auto; padding-top: 6px;
  font-family: var(--font-label); font-size: 13px; font-weight: 600; color: var(--coral-deep);
}
.post-card .more .arr { transition: transform .15s; display: inline-block; }
.post-card:hover .more .arr { transform: translateX(3px); }

/* ─── Article page ─── */
.crumbs {
  padding: 28px 0 0; font-family: var(--font-label); font-size: 13px;
  color: var(--mute); font-weight: 500;
}
.crumbs a { color: var(--coral-deep); }
.crumbs a:hover { text-decoration: underline; }

.article-head { padding: 20px 0 8px; }
.article-head .cat-chip { font-size: 12px; }
.article-head h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(32px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.022em;
  color: var(--petrol); margin-top: 14px; max-width: 20ch;
}
.article-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 22px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-family: var(--font-label); font-size: 13.5px; color: var(--mute); font-weight: 500;
}
.article-meta .a-author { color: var(--petrol); font-weight: 600; }
.article-meta .dot { width: 3px; height: 3px; background: var(--pebble); border-radius: 50%; }

.article-body { max-width: 720px; margin: 0 auto; padding-top: 8px; }
.article-body .lede {
  font-size: 21px; line-height: 1.55; color: var(--ink-2); font-weight: 400;
  margin: 32px 0 8px;
}
.article-body h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 30px;
  color: var(--petrol); letter-spacing: -.015em; line-height: 1.18;
  margin-top: 48px; margin-bottom: 14px;
}
.article-body h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 21px;
  color: var(--petrol); letter-spacing: -.005em; margin-top: 30px; margin-bottom: 8px;
}
.article-body p { font-size: 17px; color: var(--ink-2); line-height: 1.7; margin-bottom: 18px; }
.article-body a.inline { color: var(--coral-deep); font-weight: 600; border-bottom: 1px solid var(--coral-soft); }
.article-body a.inline:hover { border-bottom-color: var(--coral); }
.article-body strong { color: var(--petrol); font-weight: 700; }
.article-body ul, .article-body ol { margin: 8px 0 22px; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.article-body ul li { font-size: 17px; color: var(--ink-2); line-height: 1.6; padding-left: 26px; position: relative; }
.article-body ul li::before { content:''; position: absolute; left: 0; top: 12px; width: 13px; height: 2px; background: var(--coral); }
.article-body ol { counter-reset: ol; }
.article-body ol li { font-size: 17px; color: var(--ink-2); line-height: 1.6; padding-left: 38px; position: relative; counter-increment: ol; }
.article-body ol li::before {
  content: counter(ol); position: absolute; left: 0; top: 1px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--coral-deep);
  width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--coral-soft);
}
.article-body blockquote {
  margin: 28px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--coral);
  font-family: var(--font-display); font-weight: 400; font-size: 22px; font-style: normal;
  color: var(--petrol); line-height: 1.4; letter-spacing: -.01em;
}

/* Key takeaways box */
.tldr {
  margin: 32px 0; padding: 28px 30px; background: var(--coral-bg); border-left: 3px solid var(--coral);
}
.tldr .lbl {
  font-family: var(--font-label); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--coral-deep); font-weight: 700; margin-bottom: 12px;
}
.tldr ul { margin: 0; display: flex; flex-direction: column; gap: 9px; list-style: none; padding: 0; }
.tldr li { font-size: 15.5px; color: var(--ink-2); line-height: 1.5; padding-left: 24px; position: relative; }
.tldr li::before { content:''; position: absolute; left: 0; top: 9px; width: 12px; height: 2px; background: var(--coral); }

/* FAQ */
.faq-block { max-width: 720px; margin: 56px auto 0; }
.faq-block h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 28px;
  color: var(--petrol); letter-spacing: -.015em; margin-bottom: 8px;
}
.faq-item { border-top: 1px solid var(--line); padding: 22px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 19px;
  color: var(--petrol); letter-spacing: -.005em; margin-bottom: 8px;
}
.faq-item p { font-size: 16px; color: var(--ink-2); line-height: 1.65; }

/* Article CTA */
.article-cta {
  max-width: 720px; margin: 56px auto 0; padding: 40px 40px;
  background: var(--petrol); color: var(--sand); border-top: 4px solid var(--coral);
}
.article-cta h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 26px;
  color: #fff; letter-spacing: -.015em; line-height: 1.15; margin-bottom: 10px;
}
.article-cta p { font-size: 15.5px; color: rgba(243,237,226,.8); line-height: 1.6; margin-bottom: 22px; max-width: 52ch; }
.article-cta .btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Related */
.related { margin-top: 64px; padding-top: 8px; }
.related .eyebrow { margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }

/* Mobile */
@media (max-width: 880px) {
  .featured { grid-template-columns: 1fr; }
  .featured .feat-side { border-left: 0; border-top: 4px solid var(--coral); flex-direction: row; align-items: center; gap: 16px; padding: 24px 30px; }
  .featured .feat-body { padding: 32px 26px; }
  .blog-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .article-body .lede { font-size: 19px; }
  .article-body p, .article-body ul li, .article-body ol li { font-size: 16px; }
  .article-cta { padding: 32px 26px; }
}
@media (max-width: 520px) {
  .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .article-body h2 { font-size: 26px; }
}
