/* Blog styling for website-insightcompose.
   Matches the house style used across the VerticalServe product sites: a narrow reading column, framed
   screenshots, a two-column before/after, callouts, comparison tables and centred mermaid diagrams. */

/* ---------------------------------------------------------------- the reading column */
.article-body { max-width: 880px; margin: 0 auto; }
.article-body h2 { font-size: 27px; margin: 42px 0 8px; color: #1e1b4b; }
.article-body h3 { font-size: 19px; margin: 30px 0 8px; color: #2b2a4a; }
.article-body p { color: #4a4f6b; font-size: 16.5px; line-height: 1.75; margin-bottom: 16px; }
.article-body ul, .article-body ol { color: #4a4f6b; font-size: 16.5px; line-height: 1.7; margin: 0 0 18px 20px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: #1e1b4b; }
.article-body code { background: #eef1fb; color: #3f3d7a; padding: 1px 6px; border-radius: 5px; font-size: 13.5px;
  font-family: ui-monospace, Menlo, Consolas, monospace; }
.lead-para { font-size: 19px !important; color: #2b2a4a !important; line-height: 1.7 !important; }
.blog-meta { color: #6b7396; font-size: 14.5px; margin-top: 10px; }
.blog-hero h1 { line-height: 1.18; }

/* ---------------------------------------------------------------- framed screenshots */
.vs-shot { max-width: 1020px; margin: 0 auto; border-radius: 14px; overflow: hidden; border: 1px solid #e6e8f5;
  background: #fff; box-shadow: 0 34px 80px -34px rgba(30, 27, 75, .5); }
.vs-shot__bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #f4f6ff;
  border-bottom: 1px solid #e6e8f5; }
.vs-shot__bar span { width: 11px; height: 11px; border-radius: 50%; background: #d3d8ee; }
.vs-shot__bar span:nth-child(1) { background: #f0a6a0; }
.vs-shot__bar span:nth-child(2) { background: #f4d08a; }
.vs-shot__bar span:nth-child(3) { background: #a7dca9; }
.vs-shot__bar em { margin-left: 12px; font-style: normal; font-size: 12px; color: #8089a8;
  font-family: ui-monospace, Menlo, monospace; }
.vs-shot img { width: 100%; display: block; }
.post-shot { margin: 30px 0 34px; }
.post-shot figcaption { text-align: center; color: #6b7396; font-size: 15px; line-height: 1.6; margin-top: 16px;
  max-width: 760px; margin-inline: auto; }
.post-shot figcaption b { color: #1e1b4b; }

/* ---------------------------------------------------------------- before / after */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; }
.compare > div { border: 1px solid #e6e8f5; border-radius: 14px; padding: 20px 22px; background: #fff; }
.compare__old { border-top: 3px solid #e8a5a0 !important; }
.compare__new { border-top: 3px solid #5ac2a8 !important; }
.compare__label { display: block; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: #8089a8; margin-bottom: 6px; }
.compare strong { display: block; font-size: 16.5px; color: #1e1b4b; margin-bottom: 8px; }
.compare p { font-size: 14.5px; color: #5b6486; margin: 0; line-height: 1.6; }
@media (max-width: 767px) { .compare { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- callouts */
.callout { background: #f8f9ff; border: 1px solid #e6e8f5; border-left: 4px solid #7c6cf0; border-radius: 12px;
  padding: 20px 22px; margin: 26px 0; }
.callout h4 { margin: 0 0 8px; font-size: 16px; color: #1e1b4b; }
.callout p { margin: 0; font-size: 15px; color: #4a4f6b; line-height: 1.65; }
.callout.next { border-left-color: #22c1a4; }
.callout.warn { border-left-color: #e0a23c; background: #fffaf2; }

/* ---------------------------------------------------------------- tables */
.ec-table { width: 100%; border-collapse: collapse; margin: 20px 0 6px; font-size: 14.5px; background: #fff;
  border: 1px solid #e6e8f5; border-radius: 14px; overflow: hidden; }
.ec-table th, .ec-table td { text-align: left; padding: 12px 15px; border-bottom: 1px solid #eef0fa;
  color: #4a4f6b; vertical-align: top; }
.ec-table th { background: #f4f6ff; color: #1e1b4b; font-weight: 700; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .04em; }
.ec-table td.p { color: #1e1b4b; font-weight: 600; }
.ec-table tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- numbered steps */
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0 8px; }
.steps4 > div { background: #fff; border: 1px solid #e6e8f5; border-radius: 14px; padding: 18px 16px; }
.steps4 .n { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #3762ea, #7b3fe4);
  color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 11px; }
.steps4 h4 { font-size: 15px; color: #1e1b4b; margin: 0 0 6px; }
.steps4 p { font-size: 13.5px; color: #5b6486; margin: 0; line-height: 1.55; }
@media (max-width: 991px) { .steps4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .steps4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- diagrams */
.vs-diagram { margin: 30px 0; overflow-x: auto; background: #fbfbff; border: 1px solid #eef0fa;
  border-radius: 14px; padding: 26px 18px; }
.vs-diagram .mermaid { display: flex; justify-content: center; min-width: min-content; }
.vs-diagram figcaption { text-align: center; color: #6b7396; font-size: 14.5px; line-height: 1.6;
  margin-top: 16px; max-width: 760px; margin-inline: auto; }

/* ---------------------------------------------------------------- code */
.vs-code { background: #1b1a33; color: #e7e9f7; border-radius: 12px; padding: 18px 20px; overflow-x: auto;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.65; margin: 22px 0; }
.vs-code .c { color: #8d93c4; }
.vs-code .k { color: #9ecbff; }
.vs-code .s { color: #a8e6a1; }

/* ---------------------------------------------------------------- blog index cards */
.blog-card { display: block; background: #fff; border: 1px solid #e6e8f5; border-radius: 16px; padding: 26px 28px;
  height: 100%; transition: transform .18s ease, box-shadow .18s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 22px 48px -26px rgba(30, 27, 75, .42); }
.blog-card .tag { display: inline-block; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
  color: #6c5ce7; background: #efecff; border-radius: 999px; padding: 4px 11px; margin-bottom: 12px; }
.blog-card h3 { font-size: 20px; color: #1e1b4b; margin: 0 0 9px; line-height: 1.35; }
.blog-card p { font-size: 15px; color: #5b6486; line-height: 1.65; margin: 0 0 14px; }
.blog-card .who { font-size: 13px; color: #8089a8; }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 30px; }
@media (max-width: 767px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- links
   The theme sets a global `a:hover { color: #fff }`, which assumes links sit
   on a dark surface. Article bodies are light, so links have to say their own
   colour in both states or they vanish under the cursor. */
.article-body a,
.callout a,
.vs-diagram a { color: #3762ea; font-weight: 600; text-decoration: none;
  border-bottom: 1px solid rgba(55, 98, 234, .28); transition: color .18s ease, border-color .18s ease; }
.article-body a:hover, .article-body a:focus,
.callout a:hover, .callout a:focus,
.vs-diagram a:hover, .vs-diagram a:focus { color: #7b3fe4; border-bottom-color: #7b3fe4; }
