/* ==========================================================================
   Hidden Blog (MAR-410) — standardized post layout, finance-terminal format.
   Loaded AFTER main.min.css + brand.css on /blog/* pages only.
   Layout + prose live here as custom vm-* / .blog-prose rules so nothing
   depends on Tailwind JIT classes that main.min.css never compiled.
   Tokens mirror brand.css: bg #04181f, card #0a2c38, border #16434f,
   body copy #a6c2cb, headings #fff, accent custard #fff57d.
   ========================================================================== */

/* --- Hero --- */
.vm-blog-hero { max-width: 48rem; }
.vm-blog-hero-img {
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
  border-radius: 0.75rem;
  margin-top: 2rem;
}

/* --- Two-column article grid (single column on mobile) --- */
.vm-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 1024px) {
  .vm-blog-grid { grid-template-columns: 20.75em 1fr; gap: 3rem; }
  .vm-blog-sidebar { position: sticky; top: 8em; align-self: start; }
}

/* --- TOC card (dark card, one link per H2, active = yellow left border) --- */
.vm-toc-card {
  background-color: #0a2c38;
  border-radius: 0.75em;
  padding: 1.25em;
}
.vm-toc-heading {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75em;
}
.vm-toc-link {
  display: block;
  padding: 0.3em 0 0.3em 0.75em;
  border-left: 0.25em solid transparent;
  color: #a6c2cb;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
}
.vm-toc-link:hover { color: #fff; }
.vm-toc-link.active {
  border-left-color: #fff57d;
  font-weight: 500;
  color: #fff;
}

/* --- Share rail --- */
.vm-share { margin-top: 1.5rem; }
.vm-share-heading {
  color: #4c86a1;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6em;
}
.vm-share-row { display: flex; gap: 0.6rem; }
.vm-share-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: #0a2c38;
  color: #a6c2cb;
  border: 0;
  cursor: pointer;
}
.vm-share-link:hover { color: #fff57d; }

/* --- Article body typography (Webflow rich-text markup, scoped) --- */
.blog-prose { min-width: 0; max-width: 48rem; }
.blog-prose h2 {
  color: #fff;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  margin-top: 2.5rem;
  scroll-margin-top: 8em;
}
.blog-prose h2:first-child { margin-top: 0; }
.blog-prose h3 {
  color: #fff;
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 2rem;
}
.blog-prose h4, .blog-prose h5, .blog-prose h6 {
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1.5rem;
}
.blog-prose p {
  color: #a6c2cb;
  line-height: 1.75;
  margin-top: 1rem;
}
.blog-prose ul, .blog-prose ol {
  color: #a6c2cb;
  line-height: 1.75;
  margin-top: 1rem;
  padding-left: 1.5rem;
}
.blog-prose ul { list-style: disc; }
.blog-prose ol { list-style: decimal; }
.blog-prose li { margin-top: 0.5rem; }
.blog-prose strong { color: #cdd9dc; font-weight: 600; }
.blog-prose a { color: #fff57d; text-decoration: underline; text-underline-offset: 2px; }
.blog-prose a:hover { color: #fff; }
.blog-prose blockquote {
  border-left: 0.25em solid #16434f;
  padding-left: 1rem;
  margin-top: 1rem;
  color: #cdd9dc;
}
.blog-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem auto;
  display: block;
}
.blog-prose figure { margin: 1.5rem 0; }
.blog-prose table {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
  color: #a6c2cb;
  font-size: 0.9rem;
}
.blog-prose th, .blog-prose td {
  border: 1px solid #16434f;
  padding: 0.5rem 0.75rem;
  text-align: left;
}
.blog-prose th { color: #fff; background-color: #0a2c38; }

/* --- CTA slot (dataroom set day one; topic CTAs at Phase 2) --- */
.vm-blog-cta {
  margin-top: 3rem;
  background-color: #0a2c38;
  border: 1px solid #16434f;
  border-radius: 0.75em;
  padding: 2rem;
}
.vm-cta-h2 { margin-top: 0.5rem; }
.vm-cta-p { margin-top: 0.75rem; max-width: 40rem; }
.vm-cta-btn {
  display: inline-flex;
  align-items: center;
  margin-top: 1.25rem;
  padding: 0.6rem 1.25rem;
  border-radius: 9999px;
  background-color: #fff57d;
  color: #0a2c38;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
}

/* --- "Other blog" related grid (card titles in yellow) --- */
.vm-blog-other { margin-top: 4rem; }
.vm-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) { .vm-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .vm-related-grid { grid-template-columns: repeat(4, 1fr); } }
.vm-related-card, .vm-index-item {
  display: block;
  background-color: #0a2c38;
  border-radius: 0.75em;
  padding: 1.25em;
  text-decoration: none;
}
.vm-related-card:hover .vm-related-title,
.vm-index-item:hover .vm-related-title { text-decoration: underline; }
.vm-related-tag {
  color: #4c86a1;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.vm-related-title {
  color: #fff57d;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  margin-top: 0.4em;
}
.vm-related-summary {
  color: #a6c2cb;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-top: 0.5em;
}

/* --- Hidden index (/blog) --- */
.vm-index-h2 { margin-top: 3rem; }
.vm-index-count { color: #4c86a1; font-weight: 400; }
.vm-index-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
@media (min-width: 768px) { .vm-index-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .vm-index-list { grid-template-columns: repeat(3, 1fr); } }
