/* VTS Blog Post — styles (cached, content-hashed static asset).

   Extracted from the Claude Design "VTS Blog Post.html" prototype, with
   the same nav parity tweaks as static/blog.css so the shared
   {header_auth} fragment and centered nav render identically across the
   landing, blog, and blog-post pages. See blog.render_blog_post(). */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:        #4a7870;
  --brand-dark:   #335c56;
  --brand-mid:    #6b9e96;
  --brand-light:  #e3efed;
  --brand-pale:   #f1f7f6;
  --cta:          #d86035;
  --cta-dark:     #b84d25;
  --cta-glow:     rgba(216,96,53,.26);
  --ink:          #19201f;
  --ink-2:        #5b706c;
  --ink-3:        #9ab5b1;
  --surface:      #ffffff;
  --bg:           #f5f4f1;
  --border:       #dae6e4;
  --border-faint: #ecf3f2;
  --r1: 12px; --r2: 20px; --r3: 28px; --r4: 36px;
  --font-heading: 'Nunito', sans-serif;
  --sh-xs: 0 1px 4px rgba(25,32,31,.05);
  --sh-sm: 0 2px 12px rgba(25,32,31,.07);
  --sh-md: 0 6px 30px rgba(25,32,31,.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: 62px; padding: 0 52px;
  display: flex; align-items: center; gap: 36px;
  background: rgba(245,244,241,.88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--border-faint); box-shadow: 0 2px 24px rgba(25,32,31,.08); }
.nav-logo {
  font-family: var(--font-heading); font-size: 21px; font-weight: 800;
  color: var(--ink); text-decoration: none; letter-spacing: .025em;
  display: inline-flex; align-items: center; gap: 9px;
}
.nav-logo-img {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; display: block;
}
.nav-center {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 24px;
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.nav-link { font-size: 14px; font-weight: 400; color: var(--ink-2); text-decoration: none; transition: color .15s; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--brand); font-weight: 500; }
.nav-balance {
  font-size: 12px; font-weight: 500; color: var(--brand);
  background: var(--brand-light); padding: 5px 14px; border-radius: 100px;
  white-space: nowrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500;
  cursor: pointer; border: none; text-decoration: none;
  white-space: nowrap; transition: all .18s;
}
.btn-sm  { font-size: 13px; padding: 7px 18px; border-radius: 100px; }
.btn-md  { font-size: 15px; padding: 13px 28px; border-radius: var(--r2); }
.btn-lg  { font-size: 16px; padding: 16px 36px; border-radius: var(--r2); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-dark); transform: translateY(-1px); box-shadow: 0 6px 22px var(--cta-glow); }
.btn-outline { background: var(--surface); color: var(--ink); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--ink-2); }
/* Standalone base so the injected {header_auth} buttons (bare .btn-sm,
   no .btn) inherit layout/typography — mirrors static/landing.css. */
.btn-sm, .btn-md, .btn-lg {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500;
  cursor: pointer; border: none; text-decoration: none;
  white-space: nowrap; transition: all .18s;
}

/* ── ARTICLE HEADER ── */
.article-header {
  background: linear-gradient(160deg, #eaf4f2 0%, var(--bg) 55%);
  padding: 52px 52px 56px;
}
.article-header-inner { max-width: 760px; margin: 0 auto; }

.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-3); margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-2); text-decoration: none; transition: color .15s; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-sep { color: var(--border); }

.article-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-light);
  padding: 4px 12px; border-radius: 100px; margin-bottom: 20px;
}
.article-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

.article-title {
  font-family: var(--font-heading);
  font-size: 44px; font-weight: 700; line-height: 1.1;
  letter-spacing: -.015em; color: var(--ink);
  margin-bottom: 18px;
}

.article-meta {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.meta-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-3);
}
.meta-item svg { flex-shrink: 0; }
.meta-divider { width: 3px; height: 3px; border-radius: 50%; background: var(--border); flex-shrink: 0; }

/* ── ARTICLE LAYOUT ── */
.article-layout {
  max-width: 760px; margin: 0 auto;
  padding: 52px 52px 80px;
}

/* ── ARTICLE BODY ── */
/* ── HERO IMAGE (every post) ── */
.article-hero {
  max-width: 760px;
  margin: 8px auto 40px;
  padding: 0 24px;
}
.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--border-faint);
  border-radius: var(--r2);
}

.article-body { font-size: 16.5px; line-height: 1.82; color: var(--ink-2); }

.article-body p { margin-bottom: 22px; }
.article-body p:last-child { margin-bottom: 0; }

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 26px; font-weight: 700; line-height: 1.2;
  color: var(--ink); margin: 44px 0 16px;
}
.article-body h3 {
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 600; line-height: 1.25;
  color: var(--ink); margin: 32px 0 12px;
}

.article-body strong { color: var(--ink); font-weight: 600; }
.article-body a:not(.transcription-cta) { color: var(--brand); text-decoration: underline; text-decoration-color: var(--brand-light); text-underline-offset: 3px; transition: text-decoration-color .15s; }
.article-body a:not(.transcription-cta):hover { text-decoration-color: var(--brand); }

.article-body ul, .article-body ol {
  padding-left: 24px; margin-bottom: 22px;
  display: flex; flex-direction: column; gap: 9px;
}
.article-body li { font-size: 16.5px; line-height: 1.75; }
.article-body ul li::marker { color: var(--brand-mid); }
.article-body ol li::marker { color: var(--brand); font-weight: 600; }

.article-body blockquote {
  border-left: 3px solid var(--brand);
  padding: 14px 22px; margin: 28px 0;
  background: var(--brand-pale);
  border-radius: 0 var(--r2) var(--r2) 0;
  font-style: italic; color: var(--ink);
}
.article-body blockquote p { margin-bottom: 0; }

.article-body img {
  display: block; max-width: 100%; height: auto;
  border: 1px solid var(--border-faint);
  border-radius: var(--r2);
  margin: 28px 0;
}

/* Embedded video (responsive 16:9) */
.post-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 28px 0;
  border-radius: var(--r2);
  overflow: hidden;
  border: 1px solid var(--border-faint);
}
.post-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.article-body img + em,
.article-body figcaption {
  display: block; font-size: 13px; color: var(--ink-3);
  text-align: center; margin: -16px 0 28px;
}

/* ── TABLES ── */
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 15px;
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: var(--r1);
  overflow: hidden;          /* clip cell backgrounds to the rounded corners */
}
.article-body thead th {
  background: var(--brand-pale);
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-body th,
.article-body td {
  padding: 12px 16px;
  vertical-align: top;
  text-align: left;
}
/* row separators */
.article-body tbody tr + tr td { border-top: 1px solid var(--border-faint); }
/* column separators */
.article-body th + th,
.article-body td + td { border-left: 1px solid var(--border-faint); }
/* zebra striping for scan-ability */
.article-body tbody tr:nth-child(even) { background: var(--brand-pale); }
.article-body td { color: var(--ink-2); }

@media (max-width: 600px) {
  .article-body table { font-size: 14px; }
  .article-body th, .article-body td { padding: 9px 11px; }
}

/* ── STEP BLOCKS ── */
.steps-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0 28px; }
.step-block {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border-faint);
  border-radius: var(--r3); padding: 20px 22px;
  box-shadow: var(--sh-xs);
}
.step-num {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--brand); color: #fff; border-radius: var(--r1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 14px; font-weight: 700;
}
.step-content { flex: 1; }
.step-content strong { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--ink); display: block; margin-bottom: 5px; }
.step-content p { font-size: 14.5px; color: var(--ink-2); line-height: 1.68; margin: 0; }

/* ── TRANSCRIPTION CTA CARD ── */
.transcription-cta {
  background: var(--ink);
  border-radius: var(--r3);
  padding: 36px 38px;
  margin: 36px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s, box-shadow .22s;
  cursor: pointer;
}
.transcription-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(74,120,112,.25) 0%, transparent 60%);
  pointer-events: none;
}
.transcription-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 52px rgba(25,32,31,.28);
}
.cta-icon-wrap {
  width: 56px; height: 56px; flex-shrink: 0;
  background: rgba(74,120,112,.25);
  border-radius: var(--r2);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand-mid);
}
.cta-body { flex: 1; }
.cta-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-mid); margin-bottom: 7px;
}
.cta-headline {
  font-family: var(--font-heading); font-size: 22px; font-weight: 700;
  color: #fff; line-height: 1.2; margin-bottom: 8px;
}
.cta-desc {
  font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.65; margin-bottom: 20px;
}
.cta-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cta-note { font-size: 12px; color: rgba(255,255,255,.3); }

/* ── TIP BOX ── */
.tip-box {
  background: var(--brand-pale);
  border: 1px solid var(--brand-light);
  border-radius: var(--r2);
  padding: 16px 20px;
  margin: 24px 0;
  display: flex; gap: 12px; align-items: flex-start;
}
.tip-icon { color: var(--brand); flex-shrink: 0; margin-top: 1px; }
.tip-content { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.tip-content strong { color: var(--brand); }

/* ── KEY TAKEAWAYS (TL;DR summary box) ── */
.takeaways {
  background: var(--brand-pale); border: 1px solid var(--brand-light);
  border-left: 4px solid var(--brand); border-radius: var(--r2);
  padding: 18px 22px; margin: 24px 0;
}
.takeaways-title {
  font-family: var(--font-heading); font-weight: 800; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 8px;
}
.takeaways ul { margin: 0; padding-left: 20px; }
.takeaways li { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; margin: 4px 0; }

/* ── CALLOUTS (note / warning) — tip-box siblings ── */
.callout {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid; border-radius: var(--r2); padding: 16px 20px; margin: 24px 0;
}
.callout-icon { flex-shrink: 0; margin-top: 1px; }
.callout-content { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.callout-content > :first-child { margin-top: 0; }
.callout-content > :last-child { margin-bottom: 0; }
.callout-note { background: var(--brand-pale); border-color: var(--brand-light); }
.callout-note .callout-icon { color: var(--brand); }
.callout-note .callout-content strong { color: var(--brand); }
.callout-warning { background: #fdf3ee; border-color: #f3d6c8; }
.callout-warning .callout-icon { color: var(--cta); }
.callout-warning .callout-content strong { color: var(--cta-dark); }

/* ── PROS / CONS (comparison/review) ── */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0; }
.pros-cons-col {
  background: var(--surface); border: 1px solid var(--border-faint);
  border-radius: var(--r2); padding: 16px 20px; box-shadow: var(--sh-xs);
}
.pros-cons-h {
  font-family: var(--font-heading); font-weight: 800; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase; margin-bottom: 8px;
}
.pros .pros-cons-h { color: var(--brand); }
.cons .pros-cons-h { color: var(--cta-dark); }
.pros-cons ul { margin: 0; padding-left: 18px; }
.pros-cons li { font-size: 14px; color: var(--ink-2); line-height: 1.65; margin: 5px 0; }
@media (max-width: 560px) { .pros-cons { grid-template-columns: 1fr; } }

/* ── FAQ (accordion + FAQPage rich result) ── */
.faq { margin: 24px 0; border-top: 1px solid var(--border-faint); }
.faq-item { border-bottom: 1px solid var(--border-faint); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 14px 28px 14px 0;
  font-family: var(--font-heading); font-weight: 700; font-size: 15.5px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; top: 11px;
  font-size: 20px; font-weight: 400; color: var(--brand); line-height: 1;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 0 16px; }
.faq-a p { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; margin: 0 0 10px; }
.faq-a > :last-child { margin-bottom: 0; }

/* ── SHARE BAR ── */
.share-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 32px 0 4px; padding-top: 22px;
  border-top: 1px solid var(--border-faint);
}
.share-label {
  font-family: var(--font-heading); font-weight: 800; font-size: 12px;
  letter-spacing: .07em; text-transform: uppercase; color: var(--ink-2);
  margin-right: 2px;
}
.share-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--r1);
  background: var(--surface); border: 1px solid var(--border);
  color: var(--ink-2); cursor: pointer; transition: all .15s ease;
}
.share-btn:hover {
  color: var(--brand); border-color: var(--brand);
  background: var(--brand-pale); transform: translateY(-1px);
}

/* ── ARTICLE DIVIDER ── */
.article-divider {
  border: none; border-top: 1px solid var(--border-faint); margin: 44px 0;
}

/* ── MORE ARTICLES ── */
.more-articles {
  border-top: 1px solid var(--border-faint);
  padding: 52px 52px 80px;
  max-width: 760px; margin: 0 auto;
}
.more-label {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 28px;
}
.more-label::before { content: ''; width: 20px; height: 1.5px; background: var(--brand); }

/* Compact search pill at the top of the article header — submitting
   (Enter) navigates to /blog?q=… */
/* Search + category dropdown in a white bar below the nav — same as the
   blog index's .cats-bar / .blog-filter. */
.cats-bar {
  background: var(--surface); border-bottom: 1px solid var(--border-faint);
  padding: 0 52px;
}
.blog-filter {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
}
.blog-search { position: relative; flex: 1 1 auto; }
.blog-filter-select-wrap { position: relative; flex: 0 0 auto; }
.blog-filter-select {
  appearance: none; -webkit-appearance: none;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--border); border-radius: 100px;
  height: 40px; padding: 0 38px 0 18px; cursor: pointer; min-width: 132px;
  transition: border-color .15s, box-shadow .15s;
}
.blog-filter-select:hover { border-color: var(--brand-mid); }
.blog-filter-select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light);
}
.blog-filter-caret {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--ink-2); pointer-events: none;
}
.blog-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); pointer-events: none;
}
.blog-search-input {
  width: 100%; height: 40px; box-sizing: border-box; margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--ink);
  background: var(--brand-pale); border: 1.5px solid var(--border-faint);
  border-radius: 100px; padding: 0 18px 0 40px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.blog-search-input::placeholder { color: var(--ink-3); }
.blog-search-input:hover { border-color: var(--border); }
.blog-search-input:focus {
  outline: none; background: var(--surface);
  border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light);
}

.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.more-card {
  background: var(--surface); border: 1px solid var(--border-faint);
  border-radius: var(--r3); padding: 22px 24px;
  text-decoration: none; color: inherit;
  box-shadow: var(--sh-xs);
  transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden;
}
.more-card-thumb {
  margin: -22px -24px 16px;          /* full-bleed across the card's padding */
  aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-pale);
}
.more-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.more-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.more-card:hover .more-card-thumb img { transform: scale(1.04); }
.more-card-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin-bottom: 4px;
}
.more-card-title {
  font-family: var(--font-heading); font-size: 17px; font-weight: 700;
  color: var(--ink); line-height: 1.25;
}
.more-card-meta { font-size: 12px; color: var(--ink-3); margin-top: auto; padding-top: 10px; }

/* ── BACK LINK ── */
.back-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 10px 16px;
  background: var(--surface); border: 1px solid var(--border-faint);
  border-radius: 100px;
  transition: color .15s, border-color .15s;
  align-self: flex-start;
}
.back-link:hover { color: var(--brand); border-color: var(--brand-light); }
.back-wrap { max-width: 760px; margin: 0 auto; padding: 36px 52px 0; }

/* ── FOOTER ── */
.site-footer {
  background: var(--ink); border-top: 1px solid rgba(255,255,255,.06);
  padding: 22px 52px; display: flex; align-items: center; justify-content: space-between;
}
.site-footer p { font-size: 13px; color: rgba(255,255,255,.3); }
.footer-links { display: flex; gap: 20px; }
.footer-link { font-size: 13px; color: rgba(255,255,255,.3); text-decoration: none; transition: color .15s; }
.footer-link:hover { color: rgba(255,255,255,.6); }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .nav { padding: 0 20px; gap: 16px; }
  .nav-center { display: none; }
  .nav-link, .nav-balance { display: none; }
  .cats-bar { padding: 0 20px; }
  .blog-filter { flex-wrap: wrap; }
  .article-header { padding: 36px 20px 40px; }
  .article-title { font-size: 30px; }
  .article-layout { padding: 36px 20px 60px; }
  .more-articles { padding: 36px 20px 60px; }
  .more-grid { grid-template-columns: 1fr; }
  .transcription-cta { grid-template-columns: 1fr; gap: 16px; padding: 26px 24px; }
  .back-wrap { padding: 24px 20px 0; }
  .site-footer { padding: 22px 20px; flex-direction: column; gap: 12px; text-align: center; }
}

/* ── Dark top navigation (#1f2c29 @ ~90%) ── */
.nav { background: #1f2c29e6; }
.nav-logo { color: #fff; }
.nav-link { color: rgba(255,255,255,.70); }
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; font-weight: 500; }
.nav-balance { color: rgba(255,255,255,.88); background: rgba(255,255,255,.10); }
.nav .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.nav .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.nav.scrolled { border-color: rgba(255,255,255,.12); box-shadow: 0 2px 24px rgba(0,0,0,.22); }
