/* ============================================================
   The Funding Framework — blog styles (extends styles.css)
   ============================================================ */

/* ---------- Blog index ---------- */
.blog-hero {
  padding: 152px 0 56px;
  background:
    radial-gradient(120% 90% at 88% 0%, rgba(244, 166, 35, 0.20), transparent 55%),
    var(--paper);
}
.blog-hero h1 { font-size: clamp(38px, 5.4vw, 64px); margin-bottom: 18px; }
.blog-hero .lede { max-width: 620px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(244,166,35,0.5); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__media--blank {
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--navy), var(--navy-deep));
}
.post-card__media--blank span {
  font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber);
}
.post-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__cat { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-deep); }
.post-card__title { font-size: 21px; line-height: 1.15; }
.post-card__dek { font-size: 15px; color: var(--slate); line-height: 1.55; }
.post-card__meta { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--slate-soft); font-weight: 500; }

/* ---------- Article ---------- */
.article-wrap { padding: 132px 0 40px; background: var(--paper); }
.article { width: 100%; max-width: 760px; margin-inline: auto; padding-inline: 24px; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; font-size: 13.5px; color: var(--slate-soft); margin-bottom: 26px; }
.breadcrumb a { color: var(--slate); font-weight: 500; }
.breadcrumb a:hover { color: var(--amber-deep); }
.breadcrumb span[aria-current] { color: var(--navy); font-weight: 600; }

.article__header { margin-bottom: 30px; }
.article__title { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 14px 0 16px; }
.article__dek { font-size: clamp(18px, 2.2vw, 21px); color: var(--slate); line-height: 1.5; max-width: 62ch; }

.byline { display: flex; align-items: center; gap: 13px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.byline__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: var(--shadow-sm); }
.byline__name { display: block; font-family: var(--display); font-weight: 700; color: var(--navy); font-size: 15.5px; }
.byline__meta { display: block; font-size: 13.5px; color: var(--slate-soft); margin-top: 2px; }

.article__cover { margin: 32px 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.article__cover img { width: 100%; display: block; }

.answer-capsule {
  background: var(--amber-wash); border: 1px solid rgba(244,166,35,0.4);
  border-left: 4px solid var(--amber); border-radius: 12px;
  padding: 22px 26px; margin: 32px 0;
}
.answer-capsule__label { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-deep); display: block; margin-bottom: 8px; }
.answer-capsule p { font-size: 17.5px; line-height: 1.55; color: var(--ink); margin: 0; }

/* ---------- Prose ---------- */
.prose { font-size: 18px; line-height: 1.75; color: #2b3947; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.15; color: var(--navy); margin-top: 2em; margin-bottom: 0.1em; scroll-margin-top: 96px; }
.prose h3 { font-size: 21px; color: var(--navy); margin-top: 1.7em; scroll-margin-top: 96px; }
.prose p { margin-top: 1.1em; }
.prose a { color: var(--amber-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 500; }
.prose a:hover { color: var(--navy); }
.prose strong { color: var(--navy); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.3em; margin-top: 1.1em; }
.prose li { margin-top: 0.55em; padding-left: 0.3em; }
.prose ul li::marker { color: var(--amber-deep); }
.prose ol li::marker { color: var(--amber-deep); font-family: var(--display); font-weight: 700; }
.prose blockquote {
  border-left: 3px solid var(--amber); padding: 4px 0 4px 24px; margin: 1.6em 0;
  font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.45; color: var(--navy);
}
.prose code { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 0.88em; background: var(--paper-3); padding: 2px 6px; border-radius: 5px; color: var(--navy); }
.prose pre { background: var(--navy-900); color: #e6eef6; padding: 20px 22px; border-radius: 12px; overflow-x: auto; font-size: 14.5px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose img { border-radius: 12px; box-shadow: var(--shadow-sm); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 14px; color: var(--slate-soft); text-align: center; margin-top: 10px; }

/* tables (high AEO value) */
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.prose thead { background: var(--navy); }
.prose th { color: #fff; font-family: var(--display); font-weight: 700; text-align: left; padding: 13px 16px; font-size: 14px; letter-spacing: 0.01em; }
.prose td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--slate); }
.prose tbody tr:nth-child(even) { background: var(--paper-2); }
.prose tbody tr td:first-child { color: var(--navy); font-weight: 600; }

/* ---------- Article FAQ ---------- */
.article-faq { margin-top: 3em; padding-top: 2em; border-top: 1px solid var(--line); }
.article-faq h2 { font-size: clamp(24px, 3.2vw, 30px); color: var(--navy); margin-bottom: 22px; }
.article-faq .faq__item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; margin-bottom: 12px; }
.article-faq .faq__q { width: 100%; text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--navy); cursor: pointer; list-style: none; }
.article-faq .faq__q::-webkit-details-marker { display: none; }
.article-faq .faq__q .ic { flex: none; color: var(--amber-deep); transition: transform .3s var(--ease); }
.article-faq .faq__item[open] .faq__q .ic { transform: rotate(45deg); }
.article-faq .faq__a { padding: 0 22px 22px; color: var(--slate); font-size: 16px; line-height: 1.65; }

/* ---------- Article CTA ---------- */
.article-cta {
  margin: 3em 0 1.5em; padding: 32px; border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--navy), var(--navy-deep)); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.article-cta__eyebrow { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); display: block; margin-bottom: 8px; }
.article-cta h3 { color: #fff; font-size: 23px; margin-bottom: 8px; }
.article-cta p { color: rgba(255,255,255,0.72); font-size: 15.5px; max-width: 46ch; margin: 0; }
.article-cta .btn { flex: none; }

.back-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--navy); margin-top: 8px; }
.back-link:hover { color: var(--amber-deep); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .blog-hero { padding: 120px 0 44px; }
  .article-wrap { padding: 108px 0 32px; }
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .article-cta { flex-direction: column; align-items: flex-start; padding: 26px; }
  .article-cta .btn { width: 100%; }
}
