/* single-post.css — blog article reading experience (VIMS)
   Scoped to single posts. Values per readability report Aug 2026. */

.single-post .page-content,
.single .entry-content { }

/* Measure + type on the article body */
.single .entry-content {
  max-width: 66ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  line-height: 1.6;
  color: #1a1a1a;
}
.single .entry-content p,
.single .entry-content li {
  font-size: 18px;
  line-height: 1.6;
  color: #1a1a1a;
}
.single .entry-content p { margin: 0 0 1.4em; }

/* Headings rhythm */
.single .entry-content h2 {
  font-size: 24px;
  line-height: 1.3;
  margin: 1.8em 0 0.6em;
  color: #1a1a1a;
}
.single .entry-content h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 1.5em 0 0.5em;
  color: #1a1a1a;
}

/* In-content links: colour AND underline (WCAG 1.4.1) */
.single .entry-content a {
  color: #1a5fb4;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.single .entry-content a:hover,
.single .entry-content a:focus {
  color: #12467f;
  text-decoration: none;
}

/* Lists */
.single .entry-content ul,
.single .entry-content ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.single .entry-content li { margin: 0 0 0.5em; }

/* Key-takeaways box */
.vims-takeaways {
  background: #f4f1e8;
  border-left: 4px solid #b08050;
  padding: 16px 18px;
  margin: 0 0 1.8em;
  border-radius: 0;
}
.vims-takeaways .vims-tk-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #8a5510;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.vims-takeaways ul { margin: 0; padding-left: 1.2em; }
.vims-takeaways li { font-size: 16px; line-height: 1.5; color: #3a2f1e; margin: 0 0 6px; }

/* Auto table of contents */
.vims-toc {
  background: #eef2e9;
  border: 1px solid #cdd8c2;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 1.8em;
}
.vims-toc .vims-toc-label {
  font-size: 13px;
  font-weight: 600;
  color: #3b5a3f;
  margin: 0 0 8px;
}
.vims-toc ul { list-style: none; margin: 0; padding: 0; }
.vims-toc li { margin: 0 0 4px; }
.vims-toc a {
  color: #1a5fb4;
  text-decoration: underline;
  font-size: 16px;
  line-height: 1.7;
  display: inline-block;
  min-height: 24px;
}

/* CTA block tap targets */
.single .entry-content .vims-course-cta a {
  display: block;
  text-align: center;
  padding: 13px 20px;
  min-height: 44px;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .single .entry-content,
  .single .entry-content p,
  .single .entry-content li { line-height: 1.55; }
  .single .entry-content h2 { font-size: 22px; }
}


/* ---- Reusable in-content CTA (blog posts) ---- */
.single .entry-content .vims-cta {
  background: #faf6f0;
  border: 1px solid #e6ddcf;
  border-left: 4px solid #8f684b;
  border-radius: 8px;
  padding: 22px 24px;
  margin: 2em 0;
}
.single .entry-content .vims-cta p {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.5;
  color: #1a1a1a;
}
.single .entry-content .vims-cta .vims-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.single .entry-content .vims-cta a.vims-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.single .entry-content .vims-cta a.vims-cta-primary {
  background: #1a3020;
  color: #ffffff;
  border-color: #1a3020;
}
.single .entry-content .vims-cta a.vims-cta-primary:hover {
  background: #0f1d13;
  border-color: #0f1d13;
  color: #ffffff;
}
.single .entry-content .vims-cta a.vims-cta-secondary {
  background: transparent;
  color: #8f684b;
  border-color: #8f684b;
}
.single .entry-content .vims-cta a.vims-cta-secondary:hover {
  background: #8f684b;
  color: #ffffff;
}
@media (max-width: 600px) {
  .single .entry-content .vims-cta { padding: 18px 18px; }
  .single .entry-content .vims-cta .vims-cta-actions { flex-direction: column; }
  .single .entry-content .vims-cta a.vims-cta-btn { width: 100%; }
}
