/* Hide comments on all post pages (including pre-exported static HTML) */
.comments-section { display: none !important; }

/* =========================================================
   BLOG PUBLIC STYLES — vs-* + article-* classes
   Used by: index.php, post.php, category.php, partials/card.php
   ========================================================= */

:root {
  --vs-red: #d61f26;
  --vs-red-dark: #b2060a;
  --vs-bg-soft: #f9f9f9;
  --vs-border: #e9e9e9;
  --vs-text: #1f1f1f;
  --vs-text-muted: #666;
}

/* Container — applies to .container OUTSIDE .vs-chrome (page body sections).
   Inside .vs-chrome (nav/footer), main-site-chrome.css has its own scoped rule
   that wins by specificity, so this doesn't conflict. */
.container,
body .container,
.vs-section > .container,
.vs-hero > .container,
.vs-page-header > .container {
  max-width: 1320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 5% !important;
  padding-right: 5% !important;
  box-sizing: border-box !important;
  width: 100%;
}

/* ---------- Hero ---------- */
.vs-hero {
  background: linear-gradient(180deg, #fff 0%, var(--vs-bg-soft) 100%);
  border-bottom: 1px solid var(--vs-border);
  padding: 56px 5% 44px;
}
.vs-hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--vs-red);
  background: #fbeeee;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.vs-hero h1 {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  color: var(--vs-text);
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 820px;
}
.vs-hero p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--vs-text-muted);
  max-width: 720px;
  margin: 0;
}

/* ---------- Section ---------- */
.vs-section {
  padding: 48px 5%;
}
.vs-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.vs-section-title {
  font-family: 'Raleway', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--vs-text);
  margin: 0;
  position: relative;
  padding-bottom: 8px;
}
.vs-section-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 48px; height: 3px;
  background: var(--vs-red);
  border-radius: 2px;
}
.vs-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--vs-red);
  text-decoration: none;
  border: 1.5px solid var(--vs-red);
  border-radius: 50px;
  padding: 7px 16px;
  transition: background .2s, color .2s, gap .2s;
}
.vs-link-arrow:hover {
  background: var(--vs-red);
  color: #fff;
  gap: 9px;
}

/* ---------- Featured card ---------- */
.vs-featured {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--vs-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 44px;
  box-shadow: 0 2px 18px rgba(0,0,0,.04);
  transition: box-shadow .25s, transform .25s;
}
.vs-featured:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  transform: translateY(-3px);
}
.vs-featured .vs-card-img {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--vs-bg-soft);
}
.vs-featured .vs-card-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 16px;
  box-sizing: border-box;
}
.vs-card-cat {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--vs-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 50px;
  z-index: 2;
}
.vs-card-body {
  padding: 28px 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vs-card-title {
  font-family: 'Raleway', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--vs-text);
  margin: 0 0 12px;
}
.vs-card-excerpt {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--vs-text-muted);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vs-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--vs-text-muted);
  flex-wrap: wrap;
}
.vs-card-meta .avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.vs-card-meta .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #ccc;
}

/* ---------- Article grid + card.php ---------- */
.vs-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.article-card {
  background: #fff;
  border: 1px solid var(--vs-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 14px rgba(0,0,0,.04);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.article-card:hover {
  border-color: var(--vs-red);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  transform: translateY(-4px);
}
.article-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--vs-bg-soft);
}
.article-thumb img {
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  padding: 14px;
  box-sizing: border-box;
  transition: transform .35s;
}
.article-card:hover .article-thumb img { transform: scale(1.05); }
.article-cat-pill {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--vs-red);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
}
.article-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.article-title {
  font-family: 'Raleway', sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--vs-text);
  margin: 0;
}
.article-excerpt {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--vs-text-muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--vs-text-muted);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 8px;
}
.avatar-xs {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
}
.dot-sep { color: #ccc; }

/* ---------- Placeholder fallbacks ---------- */
.thumb-fallback,
.vs-card-img-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-family: 'Raleway', sans-serif;
  font-size: 64px;
  font-weight: 900;
  color: rgba(255,255,255,.95);
  text-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.bg-p1 { background: linear-gradient(135deg, #d61f26 0%, #ff6b6b 100%); }
.bg-p2 { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.bg-p3 { background: linear-gradient(135deg, #047857 0%, #10b981 100%); }
.bg-p4 { background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%); }

/* ---------- Category pills strip ---------- */
.vs-cats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.vs-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--vs-border);
  border-radius: 50px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--vs-text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.vs-cat-pill:hover {
  border-color: var(--vs-red);
  color: var(--vs-red);
  background: #fbeeee;
  transform: translateY(-2px);
}
.vs-cat-pill .count {
  background: var(--vs-bg-soft);
  color: var(--vs-text-muted);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
  padding: 2px 8px;
  min-width: 22px;
  text-align: center;
  transition: background .2s, color .2s;
}
.vs-cat-pill:hover .count {
  background: var(--vs-red);
  color: #fff;
}

/* ---------- Empty state ---------- */
.vs-empty {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border: 1px dashed var(--vs-border);
  border-radius: 12px;
}
.vs-empty-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--vs-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--vs-text-muted);
}
.vs-empty h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--vs-text);
  margin: 0 0 6px;
}
.vs-empty p {
  font-size: 14.5px;
  color: var(--vs-text-muted);
  margin: 0;
}

/* ---------- Page header (category/tag) ---------- */
.vs-page-header {
  background: var(--vs-bg-soft);
  border-bottom: 1px solid var(--vs-border);
  padding: 36px 5% 28px;
}
.vs-breadcrumb {
  font-size: 13px;
  color: var(--vs-text-muted);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.vs-breadcrumb a {
  color: var(--vs-red);
  text-decoration: none;
}
.vs-breadcrumb a:hover { text-decoration: underline; }
.vs-breadcrumb .sep { color: #bbb; }
.vs-page-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  color: var(--vs-text);
  margin: 0 0 8px;
}
.vs-page-desc {
  font-size: 15px;
  color: var(--vs-text-muted);
  margin: 0;
  max-width: 720px;
  line-height: 1.6;
}

/* ---------- Pagination ---------- */
.vs-pagination {
  margin-top: 36px;
  display: flex;
  justify-content: center;
}
.vs-pagination ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.vs-pagination a,
.vs-pagination .vs-page-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1.5px solid var(--vs-border);
  background: #fff;
  color: var(--vs-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.vs-pagination a:hover {
  border-color: var(--vs-red);
  color: var(--vs-red);
}
.vs-pagination .vs-page-current {
  background: var(--vs-red);
  border-color: var(--vs-red);
  color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .vs-featured { grid-template-columns: 1fr; }
  .vs-article-grid { grid-template-columns: repeat(2, 1fr); }
  .vs-card-body { padding: 22px 22px 24px; }
}
@media (max-width: 600px) {
  .vs-section { padding: 36px 0; }
  .vs-hero { padding: 36px 0 28px; }
  .vs-article-grid { grid-template-columns: 1fr; }
  .vs-section-head { flex-direction: column; align-items: flex-start; }
}


/* =========================================================
   POST PAGE — post.php classes
   ========================================================= */
.post-hero {
  background: var(--vs-bg-soft);
  border-bottom: 1px solid var(--vs-border);
  padding: 40px 0 32px;
}
.post-hero-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.post-breadcrumb {
  font-size: 13px;
  color: var(--vs-text-muted);
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.post-breadcrumb a {
  color: var(--vs-red);
  text-decoration: none;
  font-weight: 600;
}
.post-breadcrumb a:hover { text-decoration: underline; }
.post-breadcrumb .sep { color: #bbb; }
.post-title {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--vs-text);
  margin: 0 0 14px;
}
.post-excerpt {
  font-size: 17px;
  line-height: 1.65;
  color: var(--vs-text-muted);
  max-width: 720px;
  margin: 0 auto 18px;
}
.post-hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--vs-text-muted);
  flex-wrap: wrap;
  justify-content: center;
}
.post-hero-meta .author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--vs-text);
}
.post-hero-meta .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.post-hero-meta .dot-sep { color: #ccc; }

.post-cover {
  max-width: 980px;
  margin: -20px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.post-cover img,
.post-cover-fallback {
  width: 100%;
  aspect-ratio: 16/8;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
}
.post-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.95);
  font-family: 'Raleway', sans-serif;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.share-bar {
  max-width: 760px;
  margin: 28px auto 8px;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.share-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--vs-border);
  background: #fff;
  color: var(--vs-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all .2s;
}
.share-btn:hover {
  background: var(--vs-red);
  border-color: var(--vs-red);
  color: #fff;
  transform: translateY(-2px);
}

.post-body {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 0 24px;
  font-size: 17px;
  line-height: 1.8;
  color: #2a2c39;
}
.post-body > * + * { margin-top: 1em; }
.post-body h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin: 1.5em 0 .5em;
  color: var(--vs-text);
}
.post-body h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 21px;
  font-weight: 700;
  margin: 1.4em 0 .4em;
  color: var(--vs-text);
}
.post-body p { margin: 0 0 1em; }
.post-body a { color: var(--vs-red); }
.post-body img { max-width: 100%; height: auto; border-radius: 10px; }
.post-body ul, .post-body ol { padding-left: 1.4em; margin: 0 0 1em; }
.post-body blockquote {
  border-left: 4px solid var(--vs-red);
  padding: 8px 18px;
  background: var(--vs-bg-soft);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--vs-text-muted);
}
.post-body code {
  background: #f3f4f6;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14.5px;
}
.post-body pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
}

.post-footer {
  max-width: 760px;
  margin: 36px auto 0;
  padding: 0 24px;
}
.post-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.tag-pill {
  display: inline-block;
  background: var(--vs-bg-soft);
  border: 1px solid var(--vs-border);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--vs-text);
  text-decoration: none;
  transition: all .2s;
}
.tag-pill:hover {
  background: var(--vs-red);
  border-color: var(--vs-red);
  color: #fff;
}
.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--vs-bg-soft);
  border: 1px solid var(--vs-border);
  border-radius: 12px;
  padding: 22px;
}
.avatar-lg {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.author-card h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 2px;
  color: var(--vs-text);
}
.author-card .author-role {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--vs-red);
  font-weight: 700;
  margin-bottom: 8px;
}
.author-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--vs-text-muted);
  margin: 0;
}

.comments-section {
  max-width: 760px;
  margin: 44px auto 0;
  padding: 28px 24px;
  border-top: 1px solid var(--vs-border);
}
.comments-head {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--vs-text);
  margin: 0 0 18px;
}
.comment-login-note {
  background: var(--vs-bg-soft);
  border: 1px solid var(--vs-border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--vs-text-muted);
}
.comment-login-note a {
  color: var(--vs-red);
  font-weight: 700;
  text-decoration: none;
}
.comment-form textarea {
  width: 100%;
  min-height: 96px;
  padding: 12px 14px;
  border: 1.5px solid var(--vs-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  resize: vertical;
}
.comment-form .btn-row { margin-top: 10px; display: flex; justify-content: flex-end; }
.btn-primary {
  background: var(--vs-red);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 9px 22px;
  font-weight: 700;
  cursor: pointer;
}
.btn-primary:hover { background: var(--vs-red-dark); }
.comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--vs-border);
}
.comment:last-child { border-bottom: none; }
.avatar-c {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--vs-red);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.comment-author { font-weight: 700; color: var(--vs-text); margin-right: 8px; }
.comment-time { font-size: 12px; color: var(--vs-text-muted); }
.comment-body { font-size: 14.5px; line-height: 1.6; color: #444; margin-top: 4px; }

.related-section {
  max-width: 1200px;
  margin: 56px auto 40px;
  padding: 0 24px;
}
.related-section .section-head {
  margin-bottom: 22px;
}
.related-section .section-head-title {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--vs-text);
  position: relative;
  padding-bottom: 8px;
}
.related-section .section-head-title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 44px; height: 3px;
  background: var(--vs-red);
  border-radius: 2px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

@media (max-width: 991px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .article-grid { grid-template-columns: 1fr; }
  .post-cover { margin-top: -10px; padding: 0 16px; }
  .post-body { padding: 0 18px; font-size: 16px; }
}


/* =========================================================
   ARTICLE-BODY STYLES — .blog-wrapper layout
   ---------------------------------------------------------
   Scope: applies to content wrapped in <div class="blog-wrapper">
   inside an article body. ALSO mirrored onto .post-body so existing
   markup picks the same look without HTML changes.
   .author-card and .related-strip are kept scoped under .blog-wrapper
   so they don't override the existing post-footer author card.
   ========================================================= */

/* ---------- Typography (.blog-wrapper) ---------- */
.blog-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  font-family: var(--font-body, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  color: var(--text, #0f0f0f);
  line-height: 1.7;
}
.blog-wrapper h1 { font-size: 34px; line-height: 1.25; font-weight: 700; margin: 14px 0 18px; letter-spacing: -0.01em; }
.blog-wrapper h2 { font-size: 24px; line-height: 1.3;  font-weight: 700; margin: 38px 0 14px; color: var(--text, #0f0f0f); }
.blog-wrapper h3 { font-size: 18px; line-height: 1.4;  font-weight: 600; margin: 26px 0 10px; }
.blog-wrapper p  { font-size: 16.5px; margin: 0 0 16px; color: var(--text2, #2a2a2a); }
.blog-wrapper ul, .blog-wrapper ol { margin: 0 0 18px; padding-left: 22px; }
.blog-wrapper li { margin-bottom: 8px; font-size: 16.5px; color: var(--text2, #2a2a2a); }
.blog-wrapper, .blog-wrapper p, .blog-wrapper li, .blog-wrapper td, .blog-wrapper th,
.faq-answer { word-wrap: break-word; overflow-wrap: anywhere; word-break: break-word; }

/* ---------- Meta / breadcrumb (inside article) ---------- */
.blog-meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 13.5px; color: var(--muted, #666);
  margin: 0 0 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border2, #e5e5e5);
}
.blog-meta time { color: var(--muted, #666); }
.breadcrumb { font-size: 13px; color: var(--muted, #666); padding: 14px 0 6px; }
.breadcrumb a { color: var(--muted, #666); text-decoration: none; }
.breadcrumb a:hover { color: var(--red, #FF0000); }

/* ---------- Code blocks (inside article) ---------- */
.blog-wrapper pre {
  background: #0f1419; color: #e6e6e6;
  padding: 16px 18px; border-radius: 8px;
  font-family: 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  font-size: 13.5px; line-height: 1.6; overflow-x: auto;
  margin: 14px 0 22px; white-space: pre;
}
.blog-wrapper code {
  background: #f3f3f3; padding: 2px 6px; border-radius: 4px;
  font-family: 'SF Mono', Menlo, Consolas, 'Courier New', monospace;
  font-size: 14px; color: #c0392b;
}

/* ---------- Info table ---------- */
.info-table {
  width: 100%; border-collapse: collapse;
  font-size: 14.5px; margin: 16px 0 22px; line-height: 1.6;
}
.info-table thead tr { background: var(--vs-red, #d61f26); color: #fff; }
.info-table th {
  padding: 10px 14px; text-align: left;
  font-family: var(--font-b, 'Barlow Condensed', sans-serif);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.info-table th:first-child { width: 32%; }
.info-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border2, #e5e5e5);
  vertical-align: top; color: var(--text, #0f0f0f);
}
.info-table tbody tr:last-child td { border-bottom: none; }
.info-table tbody tr:nth-child(even) { background: var(--bg2, #f9f9f9); }

/* ---------- Callout / pull-quote ---------- */
.callout {
  border-left: 3px solid var(--vs-red, #d61f26);
  background: #fff7f7;
  padding: 14px 18px; margin: 18px 0 22px;
  font-size: 15.5px;
  border-radius: 0 6px 6px 0;
  color: var(--text, #0f0f0f);
}
.callout strong { color: var(--vs-red, #d61f26); }

/* ---------- FAQ accordion (<details class="faq-item">) ---------- */
.blog-wrapper .faq-item,
details.faq-item {
  border: 1px solid var(--border2, #e5e5e5);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.blog-wrapper .faq-item[open],
details.faq-item[open] {
  border-color: rgba(214, 31, 38, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.blog-wrapper .faq-item summary,
details.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 0; min-height: 32px; outline: none;
}
.blog-wrapper .faq-item summary::-webkit-details-marker,
details.faq-item summary::-webkit-details-marker { display: none; }
.blog-wrapper .faq-item .faq-question,
details.faq-item .faq-question,
.faq-item h3.faq-question {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text, #0f0f0f) !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: inherit !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  line-height: 1.5 !important;
  flex: 1;
}
.blog-wrapper .faq-item summary::after,
details.faq-item summary::after {
  content: ''; flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted, #666);
  border-bottom: 2px solid var(--muted, #666);
  transform: rotate(45deg);
  margin-right: 4px;
  transition: transform 0.2s ease;
}
.blog-wrapper .faq-item[open] summary::after,
details.faq-item[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--vs-red, #d61f26);
  margin-top: 4px;
}
.blog-wrapper .faq-item .faq-answer,
details.faq-item .faq-answer {
  font-size: 15px; color: var(--text2, #333);
  line-height: 1.7; margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border2, #e5e5e5);
}

/* ---------- Inline author card (SCOPED to .blog-wrapper only,
              so the existing post-footer .author-card is untouched) ---------- */
.blog-wrapper .author-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 20px; margin: 36px 0 0;
  background: var(--bg2, #f9f9f9);
  border: 1px solid var(--border2, #e5e5e5);
  border-radius: 12px;
}
.blog-wrapper .author-avatar {
  width: 52px; height: 52px;
  background: var(--vs-red, #d61f26); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 22px; flex-shrink: 0;
}
.blog-wrapper .author-info { flex: 1; }
.blog-wrapper .author-label { font-size: 12px; color: var(--muted, #666); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-wrapper .author-name  { font-size: 16px; font-weight: 700; display: block; color: var(--text, #0f0f0f); text-decoration: none; margin-top: 2px; }
.blog-wrapper .author-role  { font-size: 13.5px; color: var(--muted, #666); margin-top: 2px; }
.blog-wrapper .author-bio   { font-size: 14px; color: var(--text2, #333); margin: 8px 0 0; line-height: 1.6; }

/* ---------- Related strip (inside article) ---------- */
.related-strip {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border2, #e5e5e5);
}
.related-strip h2 { font-size: 20px; margin: 0 0 14px; }
.related-strip ul { list-style: none; padding: 0; margin: 0; }
.related-strip li { margin-bottom: 8px; font-size: 15.5px; }
.related-strip a {
  color: #1a56db; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.related-strip a:hover { border-bottom-color: #1a56db; }

/* ---------- Inline hyperlinks inside article body ---------- */
.blog-wrapper p a,
.blog-wrapper li a,
.blog-wrapper td a,
.blog-wrapper th a,
.faq-answer a {
  color: #1a56db !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
.blog-wrapper p a:hover,
.blog-wrapper li a:hover,
.blog-wrapper td a:hover,
.blog-wrapper th a:hover,
.faq-answer a:hover {
  color: #0b3b99 !important;
  text-decoration-thickness: 2px;
}
.blog-wrapper p a:visited,
.blog-wrapper li a:visited,
.faq-answer a:visited { color: #6b46c1; }

/* ---------- Mirror onto .post-body so existing posts pick up
              the same look without needing to switch HTML wrapper ---------- */
.post-body .info-table, .post-body .callout,
.post-body .blog-meta, .post-body .breadcrumb,
.post-body details.faq-item { /* already covered globally above */ }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .blog-wrapper { padding: 18px 14px 40px; }
  .blog-wrapper h1 { font-size: 26px; }
  .blog-wrapper h2 { font-size: 21px; margin-top: 30px; }
  .blog-wrapper h3 { font-size: 17px; }
  .blog-wrapper p, .blog-wrapper li { font-size: 16px; }
  .blog-wrapper pre { font-size: 12.5px; padding: 14px; }
  .info-table th, .info-table td { padding: 8px 10px; font-size: 13px; }
  .info-table th:first-child { width: 38%; }
  .blog-wrapper .faq-item,
  details.faq-item { padding: 14px 16px; }
  .blog-wrapper .faq-item .faq-question,
  details.faq-item .faq-question,
  .faq-item h3.faq-question { font-size: 15px !important; }
  .blog-wrapper .author-card { flex-direction: column; gap: 12px; padding: 16px; }
  .blog-wrapper .author-avatar { width: 44px; height: 44px; font-size: 18px; }
}
@media (max-width: 420px) {
  .blog-wrapper h1 { font-size: 23px; }
  .blog-wrapper h2 { font-size: 19px; }
  .blog-wrapper p, .blog-wrapper li { font-size: 15.5px; }
}


/* =========================================================
   APPLY ARTICLE STYLES TO .post-body (existing post markup)
   Mirrors the .blog-wrapper rules so existing posts get the
   same look without changing HTML.
   ========================================================= */
.post-body { /* base typography already defined earlier — these add the missing inline-element rules */ }

.post-body .info-table {
  width: 100%; border-collapse: collapse;
  font-size: 14.5px; margin: 16px 0 22px; line-height: 1.6;
}
.post-body .info-table thead tr { background: var(--vs-red, #d61f26); color: #fff; }
.post-body .info-table th {
  padding: 10px 14px; text-align: left;
  font-family: var(--font-b, 'Barlow Condensed', sans-serif);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.post-body .info-table th:first-child { width: 32%; }
.post-body .info-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border2, #e5e5e5);
  vertical-align: top; color: var(--text, #0f0f0f);
}
.post-body .info-table tbody tr:last-child td { border-bottom: none; }
.post-body .info-table tbody tr:nth-child(even) { background: var(--bg2, #f9f9f9); }

.post-body .callout {
  border-left: 3px solid var(--vs-red, #d61f26);
  background: #fff7f7;
  padding: 14px 18px; margin: 18px 0 22px;
  font-size: 15.5px;
  border-radius: 0 6px 6px 0;
  color: var(--text, #0f0f0f);
}
.post-body .callout strong { color: var(--vs-red, #d61f26); }

.post-body details.faq-item {
  border: 1px solid var(--border2, #e5e5e5);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.post-body details.faq-item[open] {
  border-color: rgba(214, 31, 38, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.post-body details.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 0; min-height: 32px; outline: none;
}
.post-body details.faq-item summary::-webkit-details-marker { display: none; }
.post-body details.faq-item .faq-question,
.post-body details.faq-item h3.faq-question {
  font-size: 16px !important; font-weight: 600 !important;
  color: var(--text, #0f0f0f) !important;
  margin: 0 !important; padding: 0 !important;
  font-family: inherit !important;
  letter-spacing: 0 !important; text-transform: none !important;
  line-height: 1.5 !important; flex: 1;
}
.post-body details.faq-item summary::after {
  content: ''; flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted, #666);
  border-bottom: 2px solid var(--muted, #666);
  transform: rotate(45deg); margin-right: 4px;
  transition: transform 0.2s ease;
}
.post-body details.faq-item[open] summary::after {
  transform: rotate(-135deg); border-color: var(--vs-red, #d61f26);
  margin-top: 4px;
}
.post-body details.faq-item .faq-answer {
  font-size: 15px; color: var(--text2, #333);
  line-height: 1.7; margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--border2, #e5e5e5);
}

.post-body .related-strip {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border2, #e5e5e5);
}
.post-body .related-strip h2 { font-size: 20px; margin: 0 0 14px; }
.post-body .related-strip ul { list-style: none; padding: 0; margin: 0; }
.post-body .related-strip li { margin-bottom: 8px; font-size: 15.5px; }
.post-body .related-strip a {
  color: #1a56db; text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.post-body .related-strip a:hover { border-bottom-color: #1a56db; }

.post-body p a,
.post-body li a,
.post-body td a,
.post-body th a,
.post-body .faq-answer a {
  color: #1a56db !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}
.post-body p a:hover,
.post-body li a:hover,
.post-body td a:hover,
.post-body th a:hover,
.post-body .faq-answer a:hover {
  color: #0b3b99 !important;
  text-decoration-thickness: 2px;
}
.post-body p a:visited,
.post-body li a:visited,
.post-body .faq-answer a:visited { color: #6b46c1; }

@media (max-width: 768px) {
  .post-body .info-table th, .post-body .info-table td { padding: 8px 10px; font-size: 13px; }
  .post-body .info-table th:first-child { width: 38%; }
  .post-body details.faq-item { padding: 14px 16px; }
  .post-body details.faq-item .faq-question,
  .post-body details.faq-item h3.faq-question { font-size: 15px !important; }
}


/* =========================================================
   Plain <table> inside post body — apply info-table look
   so authors don't need to add a class to every table.
   ========================================================= */
.post-body table, .blog-wrapper table {
  width: 100%; border-collapse: collapse;
  font-size: 14.5px; margin: 16px 0 22px; line-height: 1.6;
}
.post-body table thead tr,
.blog-wrapper table thead tr {
  background: var(--vs-red, #d61f26); color: #fff;
}
.post-body table th,
.blog-wrapper table th {
  padding: 10px 14px; text-align: left;
  font-family: var(--font-b, 'Barlow Condensed', sans-serif);
  font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff;
}
.post-body table th:first-child,
.blog-wrapper table th:first-child { width: 32%; }
.post-body table td,
.blog-wrapper table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top; color: #0f0f0f;
}
.post-body table tbody tr:last-child td,
.blog-wrapper table tbody tr:last-child td { border-bottom: none; }
.post-body table tbody tr:nth-child(even),
.blog-wrapper table tbody tr:nth-child(even) { background: #f9f9f9; }

/* If a <table> has NO <thead> (just rows), still style the first row
   like a header by hand-marking <tr> with the .header class — optional. */
.post-body table tr.header,
.blog-wrapper table tr.header { background: var(--vs-red, #d61f26); color: #fff; font-weight: 700; }
.post-body table tr.header td,
.blog-wrapper table tr.header td { color: #fff; text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; }

@media (max-width: 768px) {
  .post-body table th, .post-body table td,
  .blog-wrapper table th, .blog-wrapper table td { padding: 8px 10px; font-size: 13px; }
  .post-body table th:first-child,
  .blog-wrapper table th:first-child { width: 38%; }
}
