/* ══════════════════════════════════════════════════════════════════════
   INSIGHTS (/blog/)
   Styles for the article index and the long-form article template.
   Layers on top of styles.css and css/landing.css — reuses their tokens,
   nav, footer, buttons, breadcrumb (.lp-crumbs) and .fade-in reveal, so
   Insights reads as part of the same site rather than a bolted-on blog.

   Generated pages come from tools_generate_blog_pages.py — edit POSTS
   there and re-run, do not hand-edit /blog/**/index.html.
   ══════════════════════════════════════════════════════════════════════ */

/* ── Index hero ── */
.bl-hero { padding: 2.5rem 0 3rem; }
.bl-hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.1;
  color: var(--text-light);
  margin: 1rem 0 1.25rem;
  max-width: 18ch;
}

/* ── Topic filter rail ── */
.bl-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}
.bl-topic {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(184,134,11,0.22);
  border-radius: 999px;
  background: rgba(32, 16, 8, 0.4);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.bl-topic:hover,
.bl-topic:focus-visible { color: var(--text-light); border-color: rgba(184,134,11,0.45); }
.bl-topic[aria-pressed="true"] {
  color: var(--dark);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-color: transparent;
}
.bl-topic:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ── Featured post ── */
.bl-featured {
  display: block;
  margin: 0 0 2.5rem;
  padding: 2.25rem 2.25rem 2rem;
  background: linear-gradient(135deg, #0F0503 0%, #1C0A06 55%, #0F0503 100%);
  border: 1px solid rgba(184,134,11,0.22);
  border-radius: 20px;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s;
}
.bl-featured:hover,
.bl-featured:focus-visible {
  border-color: rgba(184,134,11,0.5);
  transform: translateY(-3px);
}
.bl-featured:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.bl-featured h2 {
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  line-height: 1.2;
  color: var(--text-light);
  margin: 0.85rem 0 0.85rem;
  max-width: 26ch;
}
.bl-featured p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 1.25rem;
}
.bl-featured-more {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
}

/* ── Card grid ── */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.15rem;
}
.bl-card {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.5rem 1.4rem;
  background: rgba(32, 16, 8, 0.45);
  border: 1px solid rgba(184,134,11,0.15);
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.bl-card:hover,
.bl-card:focus-visible {
  border-color: rgba(184,134,11,0.42);
  background: rgba(42, 20, 10, 0.62);
  transform: translateY(-3px);
}
.bl-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.bl-card h3 {
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text-light);
  margin: 0.8rem 0 0.6rem;
}
.bl-card p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 1.15rem;
  flex: 1 1 auto;
}
.bl-card[hidden] { display: none; }

/* ── Shared meta line (topic · date · read time) ── */
.bl-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}
.bl-meta .bl-tag { color: var(--gold-light); }
.bl-meta .bl-dot { opacity: 0.45; }
.bl-meta time { text-transform: none; letter-spacing: 0.02em; font-weight: 500; }

.bl-empty {
  display: none;
  padding: 2rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ── Article header ── */
/* Breadcrumb, header and body share the 780px measure so the H1 sits above
   the text column instead of floating out at the full page width. */
.container.bl-narrow { max-width: 780px; }
.bl-article-hero { padding: 2.5rem 0 2rem; }
.bl-article-hero h1 {
  font-size: clamp(1.85rem, 4.1vw, 2.85rem);
  line-height: 1.15;
  color: var(--text-light);
  margin: 1rem 0 1.1rem;
  max-width: 24ch;
}
.bl-dek {
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 62ch;
  margin: 0 0 1.75rem;
}
.bl-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(184,134,11,0.14);
  max-width: 62ch;
}
.bl-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--rust-dark));
  color: var(--text-light);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.bl-byline-name {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-light);
}
.bl-byline-role { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ── Article body ── */
.bl-article { padding: 0 0 3.5rem; }
.bl-article .container { max-width: 780px; }
.bl-prose { font-size: 1rem; line-height: 1.85; color: var(--text-muted); }
.bl-prose > p { margin: 0 0 1.35rem; }
.bl-prose h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.3rem, 2.6vw, 1.65rem);
  line-height: 1.25;
  color: var(--text-light);
  margin: 2.75rem 0 1rem;
  scroll-margin-top: 7rem;
}
.bl-prose h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.02rem;
  line-height: 1.4;
  color: var(--text-light);
  margin: 2rem 0 0.75rem;
}
.bl-prose strong { color: var(--text-light); font-weight: 600; }
.bl-prose a { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; }
.bl-prose a:hover { color: var(--text-light); }
.bl-prose ul,
.bl-prose ol { margin: 0 0 1.35rem; padding-left: 1.25rem; }
.bl-prose li { margin-bottom: 0.6rem; padding-left: 0.2rem; }
.bl-prose ul li::marker { color: var(--gold); }
.bl-prose ol li::marker { color: var(--gold); font-weight: 600; }

/* Pull quote */
.bl-pull {
  margin: 2.25rem 0;
  padding: 0 0 0 1.5rem;
  border-left: 2px solid var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.5;
  color: var(--text-light);
}

/* Callout / aside box */
.bl-note {
  margin: 2.25rem 0;
  padding: 1.35rem 1.5rem;
  background: rgba(32, 16, 8, 0.5);
  border: 1px solid rgba(184,134,11,0.2);
  border-radius: 12px;
}
.bl-note-t {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 0.55rem;
}
.bl-note p { font-size: 0.92rem; line-height: 1.75; margin: 0 0 0.85rem; }
.bl-note p:last-child { margin-bottom: 0; }

/* Key takeaways */
.bl-takeaways {
  margin: 0 0 2.5rem;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(135deg, rgba(28,10,6,0.9), rgba(15,5,3,0.9));
  border: 1px solid rgba(184,134,11,0.24);
  border-radius: 14px;
}
.bl-takeaways h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0 0 0.9rem;
}
.bl-takeaways ul { margin: 0; padding-left: 1.1rem; }
.bl-takeaways li { font-size: 0.92rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 0.55rem; }
.bl-takeaways li:last-child { margin-bottom: 0; }

/* Data table */
.bl-table-wrap { margin: 2rem 0; overflow-x: auto; }
.bl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 460px;
}
.bl-table th,
.bl-table td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid rgba(184,134,11,0.14);
  line-height: 1.6;
}
.bl-table th {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 700;
}
.bl-table td { color: var(--text-muted); }
.bl-table tr:last-child td { border-bottom: none; }

/* ── Article footer: CTA, related, back link ── */
.bl-article-cta {
  margin: 3rem 0 0;
  padding: 2rem 2rem 1.9rem;
  background: linear-gradient(135deg, #0F0503 0%, #1C0A06 50%, #0F0503 100%);
  border: 1px solid rgba(184,134,11,0.22);
  border-radius: 16px;
  text-align: center;
}
.bl-article-cta h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--text-light);
  margin: 0 0 0.7rem;
  line-height: 1.3;
}
.bl-article-cta p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 50ch;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}
.bl-article-cta .lp-cta-actions { justify-content: center; }

.bl-next { padding: 3rem 0 4.5rem; border-top: 1px solid rgba(184,134,11,0.12); }
.bl-next .container { max-width: 780px; }
.bl-next h2 {
  font-size: 1.1rem;
  color: var(--text-light);
  margin: 0 0 1.25rem;
}
.bl-back {
  display: inline-block;
  margin-top: 1.75rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
}
.bl-back:hover { color: var(--gold); }

@media (max-width: 700px) {
  .bl-featured { padding: 1.75rem 1.4rem 1.6rem; }
  .bl-takeaways { padding: 1.25rem 1.25rem; }
  .bl-article-cta { padding: 1.75rem 1.25rem; }
  .bl-prose { font-size: 0.97rem; }
}
