/* Hub Blue Editorial - blog posts.
   Scope: single posts only (.single-post #single-post .post-body).
   The five content pages keep cm-design-v2.css; the theme shell is untouched.
   Cache busting is by FILENAME: LiteSpeed strips ?ver. Bump to -vN on change.

   v3: full width, by the site owner's decision. The direction's 72ch measure
   is kept for the five Elementor content pages and waived here: a post runs
   the full width of the theme panel, like its header. Every rule sets
   margin-bottom, never the margin shorthand. */

:root {
  --cm-ink: #2F3540;
  --cm-body: #46505C;
  --cm-muted: #5D6B7A;
  --cm-accent: #2E7EA6;
  --cm-bright: #6EC1E4;
  --cm-surface: #F6F9FC;
  --cm-border: #E3ECF3;
  --cm-radius: 12px;
  --cm-sp-sm: 8px;
  --cm-sp-md: 16px;
  --cm-sp-lg: 32px;
  --cm-sp-xl: 56px;
  /* Prose rhythm: md + sm, one step below the layout gap. */
  --cm-sp-prose: 24px;
}

/* ---------- Running text ---------- */

.single-post #single-post .post-body {
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.75;
  color: var(--cm-body);
}

.single-post #single-post .post-body > p {
  margin-top: 0;
  margin-bottom: var(--cm-sp-prose);
}

.single-post #single-post .post-body strong {
  color: var(--cm-ink);
  font-weight: 600;
}

.single-post #single-post .post-body a {
  color: var(--cm-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.single-post #single-post .post-body a:hover {
  color: #256B88;
}

/* ---------- Section titles ---------- */
/* Poppins 600 over the 44px x 3px bright underline bar, the design's
   section-title signature carried over from the content pages. */

.single-post #single-post .post-body > h2 {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 26px;
  line-height: 1.2;
  color: var(--cm-ink);
  margin-top: var(--cm-sp-xl);
  margin-bottom: var(--cm-sp-lg);
  padding-bottom: var(--cm-sp-md);
  position: relative;
}

.single-post #single-post .post-body > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  background: var(--cm-bright);
}

.single-post #single-post .post-body > h2:first-child {
  margin-top: 0;
}

.single-post #single-post .post-body > h3 {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.25;
  color: var(--cm-ink);
  margin-top: var(--cm-sp-lg);
  margin-bottom: var(--cm-sp-md);
}

/* ---------- Code ---------- */
/* Monospace comes from the system stack, not a new webfont: the direction
   declares Poppins and Roboto and adds no third family. */

.single-post #single-post .post-body > pre.wp-block-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cm-ink);
  background: var(--cm-surface);
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius);
  padding: var(--cm-sp-prose);
  margin-top: 0;
  margin-bottom: var(--cm-sp-prose);
  overflow-x: auto;
  white-space: pre;
  tab-size: 4;
}

.single-post #single-post .post-body pre.wp-block-code code {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  white-space: inherit;
}

.single-post #single-post .post-body :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  color: var(--cm-ink);
  background: var(--cm-surface);
  border: 1px solid var(--cm-border);
  border-radius: 6px;
  padding: 1px 6px;
  white-space: nowrap;
}

/* ---------- Lists, quotes, separator ---------- */

.single-post #single-post .post-body > ul,
.single-post #single-post .post-body > ol {
  margin-top: 0;
  margin-bottom: var(--cm-sp-prose);
  padding-left: var(--cm-sp-lg);
}

.single-post #single-post .post-body li {
  margin-bottom: var(--cm-sp-sm);
}

.single-post #single-post .post-body > blockquote {
  margin-top: 0;
  margin-bottom: var(--cm-sp-prose);
  padding-left: var(--cm-sp-lg);
  border-left: 3px solid var(--cm-bright);
  color: var(--cm-muted);
  font-style: normal;
}

.single-post #single-post .post-body > hr.wp-block-separator {
  border: 0;
  border-top: 1px solid var(--cm-border);
  margin-top: var(--cm-sp-xl);
  margin-bottom: var(--cm-sp-xl);
}

/* The closing note for non-technical readers: same measure, quieter ink. */
.single-post #single-post .post-body > hr.wp-block-separator + p em {
  color: var(--cm-muted);
  font-style: normal;
}

/* ---------- Post header ---------- */

.single-post .single-post-title h1 {
  font-family: Poppins, sans-serif;
  font-weight: 600;
  line-height: 1.15;
}

.single-post .single-post-title .post-info {
  font-size: 13px;
  letter-spacing: .5px;
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
  .single-post #single-post .post-body > h2 {
    font-size: 22px;
    margin-top: var(--cm-sp-lg);
  }

  .single-post #single-post .post-body > pre.wp-block-code {
    padding: var(--cm-sp-md);
    font-size: 13px;
  }
}
