/* insights.css — standalone styles for the Insights pages only.
   Relies on design tokens defined in styles.css (:root --blue/--black/--ink/--slate/--ice). */

/* ---- Insights index ---- */
.insights-head {
  padding: 90px 0 24px;
  position: relative;
  z-index: 2;
}

.insights-head h1 {
  font-size: clamp(2.4rem, 2.4vw + 1.4rem, 3.4rem);
  margin: 0 0 14px;
  color: var(--black);
}

.insights-head p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--slate);
  margin: 0;
  max-width: 560px;
}

.post-list {
  padding: 24px 0 90px;
  position: relative;
  z-index: 2;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

/* Resources cross-link below the post grid. */
.insights-more {
  margin: 40px 0 0;
  font-size: 1rem;
  color: var(--slate);
}

.insights-more a {
  color: var(--blue);
  font-weight: 600;
  text-underline-offset: 2px;
}

.insights-more a:hover {
  text-decoration: underline;
}

/* Post card — consistent with .card / .marketplace-card from styles.css */
.post-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px;
  border: 1px solid rgba(70, 60, 251, 0.1);
  box-shadow: 0 14px 30px rgba(21, 27, 67, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 45px rgba(21, 27, 67, 0.14);
}

.post-card .post-date {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blue);
  margin: 0 0 12px;
}

.post-card h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--black);
}

.post-card .post-dek {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate);
  margin: 0;
}

/* ---- Article ---- */
.article {
  width: min(680px, 92vw);
  margin: 0 auto;
  padding: 70px 0 90px;
  position: relative;
  z-index: 2;
}

.back-to-insights {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 28px;
  transition: opacity 0.2s ease;
}

.back-to-insights:hover {
  opacity: 0.7;
}

.article h1 {
  font-size: clamp(2.1rem, 2.2vw + 1.3rem, 3rem);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--black);
}

.article .byline {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  margin: 0 0 40px;
}

.article p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1.5em;
}

.article h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 700;
  color: var(--black);
  margin: 2em 0 0.6em;
}

/* Body lists — matched to .article p sizing (used by legal/policy pages).
   Scoped to ul so it doesn't override .article-footnotes (an ol). */
.article ul {
  margin: 0 0 1.5em;
  padding-left: 1.4em;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--ink);
}

.article ul li {
  margin: 0 0 0.6em;
}

/* Inline prose links (e.g. mailto, cross-references on policy pages).
   fn-ref superscript links keep their no-underline style via the reset below. */
.article p a,
.article ul a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article .fn-ref a {
  text-decoration: none;
}

/* Policy pages (Terms/Privacy) read denser than editorial articles — smaller
   body and section type. Scoped to .legal-doc so the blog article is untouched. */
.legal-doc p,
.legal-doc ul {
  font-size: 1rem;
}

.legal-doc h2 {
  font-size: 1.25rem;
}

/* Pull-quote — the anchor line */
.article .pull-quote {
  margin: 2.4em 0;
  padding: 6px 0 6px 26px;
  border-left: 4px solid var(--blue);
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--black);
}

.article .pull-quote em {
  color: var(--blue);
  font-style: normal;
}

/* Footnote reference in body text */
.fn-ref {
  font-size: 0.7em;
  line-height: 0;
}

.fn-ref a {
  color: var(--blue);
  font-weight: 600;
}

/* Footnotes list at the end of the article */
.article-footnotes {
  margin: 3em 0 0;
  padding: 1.6em 0 0 1.2em;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--slate);
}

.article-footnotes li {
  margin: 0 0 0.6em;
}

.article-footnotes a {
  color: var(--blue);
}

.article-footnotes .fn-back {
  margin-left: 4px;
  text-decoration: none;
}

.article-cta {
  margin-top: 3em;
  padding-top: 2.4em;
  border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
  .insights-head {
    padding-top: 60px;
  }

  .article {
    padding-top: 50px;
  }
}
