/* ==========================================================================
   content.css — typography for Markdown content (/insights articles).
   Same palette and Funnel Sans as the rest of the site; legal pages reuse the
   .legal-* rules from site.css.
   ========================================================================== */

.article-hero {
  color: var(--_color---neutral--white);
  background: var(--_color---neutral--black) url("/images/us-bg-2160.avif") 0 0 / 2160px repeat;
  padding-top: calc(var(--_components---section--padding) + 5rem);
  padding-bottom: calc(var(--_components---section--padding) + 1rem);
}
.article-container { max-width: 46rem; }
.article-hero .is-superheader.is-light-grey { margin-bottom: 1.5rem; }
.article-title {
  color: var(--_color---neutral--white);
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 1rem;
}
.article-lead { color: #dee3ffcc; font-size: 1.125rem; line-height: 1.6; font-weight: 400; margin: 0 0 1.25rem; max-width: 40rem; }
.article-meta { color: #dee3ffa3; font-size: 14px; font-weight: 400; margin: 0; }
.article-meta a { color: inherit; }

.article-body { background-color: var(--_color---neutral--white); }

.prose { font-weight: 400; }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  font-size: clamp(1.35rem, 1.1rem + .8vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  margin: 2.75rem 0 .9rem;
  scroll-margin-top: 5.5rem;
}
.prose h3 { font-size: 1.15rem; line-height: 1.3; margin: 2rem 0 .6rem; scroll-margin-top: 5.5rem; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: var(--_color---neutral--black); }
.prose p { margin: 0 0 1.1em; }
.prose strong { font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: #6f6f6f; }
.prose a { color: var(--_color---secondary--blue); text-decoration: underline; text-underline-offset: .15em; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose blockquote {
  margin: 1.5rem 0;
  padding: .25rem 0 .25rem 1.25rem;
  border-left: 2px solid var(--_color---neutral--black);
  font-size: 1.15rem;
  line-height: 1.5;
}
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid #00000014; margin: 2.5rem 0; }
.prose img { max-width: 100%; height: auto; }
.prose pre { background: #f0eee6; padding: 1rem 1.25rem; overflow-x: auto; font-size: .9rem; line-height: 1.5; margin: 0 0 1.25rem; }
.prose code { font-size: .95em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid #00000014; vertical-align: top; }
.prose th { font-weight: 600; }

/* FAQ block rendered from frontmatter */
.article-faq { margin-top: 3rem; border-top: 1px solid #00000014; padding-top: 2rem; }
.article-faq h2 { margin-top: 0; }
.article-faq details { border-bottom: 1px solid #00000014; padding: .9rem 0; }
.article-faq summary { cursor: pointer; font-weight: 600; font-size: 17px; line-height: 1.5; }
.article-faq details p { margin: .75rem 0 0; }

/* Closing CTA (same button as the homepage) */
.article-cta { margin-top: 3rem; padding: 2rem; background: #f7f9fc; border: 1px solid #00000014; }
.article-cta p { margin: 0 0 1.25rem; font-size: 17px; line-height: 1.6; }

/* Article list (/insights) */
.insights-list { display: grid; gap: 1.5rem; }
.insight-card { border: 1px solid #00000014; padding: 1.5rem; display: block; color: inherit; text-decoration: none; transition: background-color .3s ease; }
.insight-card.has-thumb { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 0; padding: 0; align-items: stretch; }
.insight-card.has-thumb .insight-card_text { padding: 1.5rem; }
.insight-card_thumb { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
@media screen and (max-width: 767px) {
  .insight-card.has-thumb { grid-template-columns: 1fr; }
  .insight-card_thumb { order: -1; height: auto; aspect-ratio: 2 / 1; }
}
.insight-card:hover { background-color: rgba(0, 0, 0, .02); }
.insight-card .is-superheader { margin-bottom: .75rem; }
.insight-card h2 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 .5rem; }
.insight-card p { margin: 0; font-size: 16px; line-height: 1.6; font-weight: 400; }
.insights-empty { color: #474641; font-size: 17px; line-height: 1.6; font-weight: 400; }

/* Images: cover under the header band, figures with captions in the body */
.article-cover { margin: 0 0 2.5rem; }
.article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; }
.prose figure { margin: 2rem 0; }
.prose figure img, .prose > p > img { display: block; width: 100%; height: auto; }
.prose figcaption { margin-top: .6rem; font-size: 14px; line-height: 1.5; color: #6f6f6f; }
@media screen and (max-width: 767px) {
  .article-cover { margin-bottom: 1.75rem; }
}
