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

   Extracted verbatim from the Claude Design "VTS Blog.html" prototype,
   with two parity tweaks so the shared {header_auth} nav fragment
   (rendered by landing._header_auth_html) renders identically here:
     - .nav-logo / .nav-logo-img match the landing image-logo markup
     - a standalone .btn-sm/.btn-md/.btn-lg base (the prototype's button
       base lived on .btn; the injected auth buttons use bare .btn-sm)
   See blog.py for how this is wired. */

*, *::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);
  --sh-lg: 0 16px 64px rgba(25,32,31,.13);
}

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: 14px; padding: 11px 22px; border-radius: var(--r2); }
.btn-lg  { font-size: 15px; padding: 14px 32px; 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); }
.btn-ghost { background: transparent; color: var(--brand); padding-left: 0; }
.btn-ghost:hover { color: var(--brand-dark); gap: 10px; }
/* 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;
}

/* ── LAYOUT ── */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 52px; }

/* ── BLOG HEADER ── */
.blog-header {
  background: linear-gradient(150deg, #e9f4f2 0%, var(--bg) 60%, #faf0e8 100%);
  padding: 68px 52px 60px;
}
.blog-header .wrap { padding: 0; }
.blog-header-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: 14px;
}
.blog-header-label::before { content: ''; width: 20px; height: 1.5px; background: var(--brand); }
.blog-header-title {
  font-family: var(--font-heading);
  font-size: 48px; font-weight: 700; line-height: 1.08;
  letter-spacing: -.015em; color: var(--ink); margin-bottom: 12px;
}
.blog-header-sub { font-size: 17px; color: var(--ink-2); line-height: 1.7; max-width: 480px; }

/* ── CATEGORIES BAR ── */
.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;
}
/* Wide, soft search pill on the left */
.blog-search { position: relative; flex: 1 1 auto; }
.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;
  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);
}
/* Compact category pill on the right */
.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;
}
.posts-empty {
  text-align: center; color: var(--ink-2);
  font-size: 15px; padding: 56px 20px 8px;
}

/* ── MAIN CONTENT ── */
.blog-body { padding: 52px 0 100px; }

/* ── FEATURED POST ── */
.featured-wrap { max-width: 1120px; margin: 0 auto 52px; padding: 0 52px; }
.featured-card {
  background: var(--brand-pale);
  border: 1.5px solid var(--brand-light);
  border-radius: var(--r4);
  padding: 52px 56px;
  display: grid; grid-template-columns: 1fr 340px;
  gap: 48px; align-items: center;
  position: relative; overflow: hidden;
  transition: box-shadow .22s;
}
.featured-card:hover { box-shadow: var(--sh-md); }
.featured-card-deco {
  position: absolute; right: 200px; top: -60px;
  width: 280px; height: 280px; opacity: .07;
  border: 40px solid var(--brand); border-radius: 50%;
  pointer-events: none;
}
.featured-card-deco2 {
  position: absolute; right: 60px; bottom: -80px;
  width: 180px; height: 180px; opacity: .05;
  border: 28px solid var(--brand); border-radius: 50%;
  pointer-events: none;
}
.featured-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;
}
.featured-tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.featured-title {
  font-family: var(--font-heading);
  font-size: 38px; font-weight: 700; line-height: 1.12;
  color: var(--ink); margin-bottom: 14px;
}
.featured-excerpt { font-size: 15px; color: var(--ink-2); line-height: 1.76; margin-bottom: 28px; }
.featured-meta {
  display: flex; align-items: center; gap: 20px; margin-bottom: 28px; flex-wrap: wrap;
}
.post-meta-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.post-meta-item svg { flex-shrink: 0; }

/* Decorative waveform graphic */
.featured-graphic {
  display: flex; align-items: center; justify-content: center;
}

/* ── POSTS GRID ── */
.posts-wrap { max-width: 1120px; margin: 0 auto; padding: 0 52px; }
.posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.post-card {
  background: var(--surface);
  border: 1px solid var(--border-faint);
  border-radius: var(--r3);
  box-shadow: var(--sh-xs);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  text-decoration: none; color: inherit;
  position: relative;
}
.post-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.post-card-accent {
  height: 3px; background: var(--brand); flex-shrink: 0;
}
.post-card-accent.cta   { background: var(--cta); }
.post-card-accent.mid   { background: var(--brand-mid); }
.post-card-thumb {
  width: 100%; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--brand-pale); flex-shrink: 0;
}
.post-card-thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s ease;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 26px 28px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-tag {
  display: inline-flex; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-light);
  padding: 3px 10px; border-radius: 100px; margin-bottom: 14px; align-self: flex-start;
}
.post-card-tag.orange { color: var(--cta); background: rgba(216,96,53,.10); }
.post-card-tag.teal   { color: var(--brand-mid); background: rgba(107,158,150,.12); }
.post-card-title {
  font-family: var(--font-heading); font-size: 21px; font-weight: 700;
  color: var(--ink); line-height: 1.22; margin-bottom: 10px;
}
.post-card-excerpt { font-size: 14px; color: var(--ink-2); line-height: 1.72; flex: 1; margin-bottom: 20px; }
.post-card-footer {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--border-faint);
  flex-shrink: 0;
}
.post-card-date { font-size: 12px; color: var(--ink-3); }
.post-card-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.post-card-read { font-size: 12px; color: var(--ink-3); margin-left: auto; }

/* ── FEATURED SLIDER ── */
.featured-slider { position: relative; }
.slider-outer { overflow: hidden; border-radius: var(--r4); }
.slider-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); will-change: transform; }
.slide { flex-shrink: 0; width: 100%; }
.slider-nav-btn {
  position: absolute; top: calc(50% - 20px); transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface); border: 1.5px solid var(--border);
  box-shadow: var(--sh-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2); transition: all .18s; z-index: 2;
}
.slider-nav-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--sh-md); }
.slider-prev { left: -18px; }
.slider-next { right: -18px; }
.slider-dots { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; }
.slider-dot {
  height: 6px; border-radius: 3px; background: var(--border);
  cursor: pointer; transition: all .3s; width: 6px; flex-shrink: 0;
}
.slider-dot.active { background: var(--brand); width: 22px; }

/* ── PAGINATION ── */
.pagination-wrap { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 44px; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; font-weight: 500;
  background: var(--surface); color: var(--ink-2);
  border: 1.5px solid var(--border); border-radius: var(--r1);
  cursor: pointer; transition: all .18s;
}
.page-btn:hover:not(:disabled) { border-color: var(--brand-mid); color: var(--ink); }
.page-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.page-btn:disabled { opacity: .35; cursor: not-allowed; }
.page-ellipsis {
  min-width: 24px; height: 38px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 8px; color: var(--ink-3);
  font-size: 14px; user-select: none;
}
.page-sep { font-size: 14px; color: var(--ink-3); padding: 0 4px; line-height: 38px; }

/* ── NEWSLETTER / CTA ── */
.newsletter-sec {
  background: var(--ink); margin-top: 80px; padding: 72px 52px;
  text-align: center;
}
.newsletter-label {
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-mid); margin-bottom: 16px;
}
.newsletter-title {
  font-family: var(--font-heading); font-size: 34px; font-weight: 700;
  color: #fff; margin-bottom: 10px; line-height: 1.15;
}
.newsletter-sub { font-size: 15px; color: rgba(255,255,255,.45); margin-bottom: 28px; line-height: 1.7; }

/* ── 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: 900px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 1fr; }
  .featured-graphic { display: none; }
}
@media (max-width: 640px) {
  .nav { padding: 0 20px; gap: 16px; }
  .nav-center { display: none; }
  .nav-link, .nav-balance { display: none; }
  .blog-header { padding: 44px 20px 40px; }
  .blog-header-title { font-size: 34px; }
  .cats-bar { padding: 0 20px; }
  .blog-filter { flex-wrap: wrap; }
  .blog-search { max-width: none; width: 100%; }
  .wrap { padding: 0 20px; }
  .featured-wrap { padding: 0 20px; }
  .posts-wrap { padding: 0 20px; }
  .featured-card { padding: 32px 28px; }
  .featured-title { font-size: 26px; }
  .posts-grid { grid-template-columns: 1fr; }
  .newsletter-sec { padding: 52px 20px; }
  .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); }
