/* RenewFlo — Blog hub + article pages. Tokens come from site.css. */

/* ── Hub: filters + cards ─────────────────────────────────── */
.blog-hub { padding-top: clamp(36px, 5vw, 56px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--gray-200); background: #fff; color: var(--gray-600);
  transition: color .15s, border-color .15s, background .15s;
}
.filter:hover { color: var(--blue); border-color: var(--blue); }
.filter[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter .count {
  display: inline-block; min-width: 20px; margin-left: 4px; padding: 1px 6px; border-radius: 999px;
  font-size: 12px; background: var(--gray-100); color: var(--gray-600);
}
.filter[aria-pressed="true"] .count { background: rgba(255,255,255,.2); color: #fff; }

.post-grid {
  list-style: none; display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.post-card[hidden] { display: none; }
.post-card a {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 26px; text-decoration: none; color: inherit;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.post-card a:hover { border-color: var(--blue-100); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.post-cat {
  align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-50); padding: 5px 10px; border-radius: 999px;
}
.post-card h2 { font-size: 19px; font-weight: 700; letter-spacing: -.015em; line-height: 1.35; margin: 16px 0 10px; color: var(--ink); }
.post-card p { font-size: 15px; color: var(--gray-600); line-height: 1.6; flex: 1; }
.post-card time { display: block; margin-top: 18px; font-size: 13px; font-weight: 500; color: var(--gray-500); }

/* ── Article ──────────────────────────────────────────────── */
.container.narrow { max-width: 780px; }
.post-head { padding: clamp(36px, 6vw, 64px) 0 8px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 600; color: var(--gray-500); margin-bottom: 18px; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post-head h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; color: var(--ink); }
.byline { margin-top: 18px; font-size: 15px; color: var(--gray-600); line-height: 1.7; }
.byline a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--blue-100); text-underline-offset: 3px; }
.byline a:hover { color: var(--blue); }

.short-answer {
  margin: 28px 0 8px; padding: 26px 28px; border-radius: var(--radius);
  background: var(--blue-50); border: 1px solid var(--blue-100); border-left: 5px solid var(--blue);
}
.short-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.short-answer p:last-child { font-size: 18px; line-height: 1.7; color: var(--ink); }

.toc { margin: 28px 0 8px; padding: 22px 26px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--gray-50); }
.toc-label { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.toc a { color: var(--gray-600); text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }

.prose { font-size: 17px; line-height: 1.75; color: var(--gray-600); padding-bottom: 8px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: clamp(24px, 3vw, 30px); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; color: var(--ink);
  margin-top: 2.2em; scroll-margin-top: calc(var(--header-h) + 16px);
}
.prose h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; color: var(--ink); margin-top: 1.8em; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h3.q + p { margin-top: .5em; }
.prose strong { color: var(--ink); font-weight: 650; }
.prose em { font-style: normal; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.prose a:hover { color: var(--blue-dark); }
.prose ul, .prose ol { padding-left: 1.4em; display: grid; gap: .45em; }
.prose li::marker { color: var(--blue); }
.prose ul.checklist { list-style: none; padding-left: 0; gap: .6em; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.check { flex-shrink: 0; width: 20px; height: 20px; margin-top: 4px; border: 2px solid var(--blue); border-radius: 6px; background: #fff; }
.table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.prose th { background: var(--gray-50); color: var(--ink); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }

.post-notes { margin: 40px 0 clamp(48px, 7vw, 80px); padding-top: 24px; border-top: 1px solid var(--gray-200); display: grid; gap: 12px; }
.post-notes p { font-size: 14px; line-height: 1.65; color: var(--gray-500); }

.related-title { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 28px; }
.related .post-card h2 { font-size: 18px; }
.cta-band .cta-actions { margin-top: 28px; }

@media (max-width: 640px) {
  .short-answer { padding: 20px; }
  .short-answer p:last-child { font-size: 17px; }
  .prose { font-size: 16.5px; }
  .toc { padding: 18px 20px; }
}
