/* ============================================================
   Vantage Consulting — Blog stylesheet
   Shared by /blog/index.html and every /blog/posts/*.html page.
   Reuses the exact design tokens, header, and footer from the
   main site (vbuscon_website.html) so the blog reads as part of
   the same site, not a bolted-on afterthought.
   ============================================================ */

:root {
  /* Vantage identity 4A — plum / moss / sage / ink / ground */
  --plum: #4A2D5C;
  --plum-deep: #3A2249;
  --plum-soft: rgba(74,45,92,0.12);
  --moss: #3E7A5E;
  --moss-deep: #2F5F49;
  --moss-soft: rgba(62,122,94,0.12);
  --sage: #8FB69F;
  --alert: #B3261E;
  --alert-soft: rgba(179,38,30,0.12);

  --paper: #F3F2F2;
  --paper-warm: #EAE7E4;
  --ink: #2E2438;
  --ink-soft: #6B617A;

  --mustard: var(--moss);
  --mustard-deep: var(--moss-deep);
  --mustard-soft: var(--moss-soft);
  --coral: var(--plum);
  --coral-deep: var(--plum-deep);
  --coral-soft: var(--plum-soft);
  --teal: var(--moss);
  --teal-deep: var(--moss-deep);
  --teal-soft: var(--moss-soft);
  --violet: var(--moss);
  --violet-deep: var(--moss-deep);
  --violet-soft: var(--moss-soft);
  --sage-bright: var(--plum);
  --sage-soft: var(--plum-soft);

  --line: rgba(46,36,56,0.12);
  --line-soft: rgba(46,36,56,0.08);
  --max-width: 1180px;
  --content-width: 720px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  color: var(--plum);
  letter-spacing: -0.5px;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

::selection { background: var(--plum); color: var(--paper); }

/* ===== HEADER (identical to main site) ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,243,237,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
  position: relative;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { display: block; width: 26px; height: 26px; }
.brand { display: flex; align-items: center; gap: 10px; }
a.brand { text-decoration: none; color: inherit; cursor: pointer; transition: opacity 0.15s; }
a.brand:hover { opacity: 0.8; }
.brand img { width: 34px; height: 34px; }
.brand-text {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.6px;
  border-left: 2px solid var(--plum);
  padding-left: 12px;
}
.brand-text span {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--plum);
  margin-top: 3px;
}
nav { display: flex; align-items: center; gap: 4px; }
nav a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 20px;
  transition: background 0.15s, color 0.15s;
}
nav a:hover { color: var(--ink); background: var(--line-soft); }
nav a.active { color: var(--ink); background: var(--line-soft); }
.nav-cta { margin-left: 10px; background: var(--ink) !important; color: var(--paper) !important; }
.nav-cta:hover { background: var(--coral) !important; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 20px 18px;
    box-shadow: 0 12px 24px rgba(46,36,56,0.12);
  }
  nav.nav-open { display: flex; }
  nav a { padding: 12px 10px; border-radius: 8px; }
  .nav-cta { margin-left: 0; text-align: center; }
}

/* ===== SECTION LABEL (shared kicker system) ===== */
.section { padding: 72px 0; }
.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 0;
  margin-bottom: 18px;
  position: relative;
}
.kicker::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 42px; height: 3px;
  border-radius: 2px;
}
.k-mustard { color: var(--mustard-deep); }
.k-mustard::after { background: var(--mustard); }
.k-coral { color: var(--coral-deep); }
.k-coral::after { background: var(--coral); }
.k-teal { color: var(--teal-deep); }
.k-teal::after { background: var(--teal); }

/* ===== BLOG HERO / INDEX HEAD ===== */
.blog-hero {
  background: var(--ink);
  color: var(--paper);
  padding: 76px 0 60px;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 500px at 88% -10%, rgba(62,122,94,0.28), transparent 60%),
    radial-gradient(ellipse 500px 400px at -5% 80%, rgba(74,45,92,0.18), transparent 60%);
  pointer-events: none;
}
.blog-hero .wrap { position: relative; }
.blog-hero h1 { color: var(--paper); font-size: 46px; letter-spacing: -1px; max-width: 640px; }
.blog-hero p { margin-top: 16px; color: rgba(246,243,237,0.72); font-size: 18px; max-width: 560px; }

/* ===== TAG FILTER PILLS ===== */
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.tag-filter-pill {
  font-family: 'Archivo', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  padding: 9px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tag-filter-pill:hover { border-color: var(--moss); color: var(--ink); }
.tag-filter-pill.active {
  background: var(--moss);
  border-color: var(--moss);
  color: #fff;
}
.tag-filter-empty {
  color: var(--ink-soft);
  font-size: 15px;
  padding: 40px 0;
  text-align: center;
}

/* ===== POST GRID / CARDS ===== */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(42,46,51,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(42,46,51,0.14); }
.post-card-top { height: 6px; background: var(--moss); }
.post-card:nth-child(3n+2) .post-card-top { background: var(--plum); }
.post-card:nth-child(3n+3) .post-card-top { background: var(--sage); }
.post-card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--moss-deep);
  background: var(--moss-soft);
  padding: 5px 12px;
  border-radius: 14px;
}
.post-card h3 { font-size: 20px; line-height: 1.3; }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.post-card-meta {
  margin-top: auto;
  padding-top: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  gap: 10px;
  align-items: center;
}
.post-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-soft); }

.post-card.featured {
  grid-column: span 3;
  flex-direction: row;
}
.post-card.featured .post-card-top { width: 6px; height: auto; }
.post-card.featured .post-card-body { padding: 40px 44px; gap: 14px; }
.post-card.featured h3 { font-size: 28px; }
.post-card.featured p { font-size: 16.5px; max-width: 640px; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card.featured { grid-column: span 1; flex-direction: column; }
  .post-card.featured .post-card-top { width: auto; height: 6px; }
  .blog-hero h1 { font-size: 34px; }
}

/* ===== ARTICLE PAGE ===== */
.article-hero { padding: 56px 0 36px; border-bottom: 1px solid var(--line); }
.article-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--moss-deep);
  background: var(--moss-soft);
  padding: 6px 14px;
  border-radius: 14px;
  margin-bottom: 20px;
}
.article-hero h1 {
  font-size: 42px;
  letter-spacing: -1px;
  max-width: var(--content-width);
}
.article-dek {
  margin-top: 16px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: var(--content-width);
  line-height: 1.55;
}
.article-byline {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.article-byline strong { color: var(--ink); font-weight: 700; }
.article-byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-soft); }

.article-body {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 32px 40px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
}
.article-body img { border-radius: 10px; margin: 8px 0 32px; }
.article-body img.hero-portrait {
  max-height: 640px;
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.article-body h2 { font-size: 27px; margin: 44px 0 16px; letter-spacing: -0.3px; }
.article-body h3 { font-size: 21px; margin: 34px 0 12px; }
.article-body p { margin: 0 0 22px; }
.article-body ul, .article-body ol { margin: 0 0 22px; padding-left: 22px; }
.article-body li { margin-bottom: 10px; }
.article-body strong { color: var(--plum); }
.article-body blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--moss);
  font-size: 20px;
  font-weight: 500;
  color: var(--plum);
  font-style: normal;
}
.article-body a { color: var(--plum); text-decoration: underline; text-decoration-color: var(--sage); }

.article-body .table-scroll { overflow-x: auto; margin: 0 0 28px; -webkit-overflow-scrolling: touch; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0; font-size: 15.5px; }
.article-body th, .article-body td { padding: 10px 14px 10px 0; text-align: left; border-bottom: 1px solid var(--paper-warm); white-space: nowrap; }
.article-body th { font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--moss); }
.article-body tr:last-child td { border-bottom: none; }
.article-body table strong { color: var(--plum); }

.article-footer {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px 72px;
}
.article-cta {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article-cta strong { font-size: 19px; color: var(--plum); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  margin-bottom: 8px;
}
.back-link:hover { color: var(--plum); }

.btn-primary {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  background: linear-gradient(100deg, var(--coral) 0%, var(--coral-deep) 100%);
  color: #fff;
  text-decoration: none;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(74,45,92,0.3);
}
.btn-schedule {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 10px;
  background: linear-gradient(100deg, var(--moss) 0%, var(--moss-deep) 100%);
  color: #fff;
  text-decoration: none;
  padding: 14px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(62,122,94,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-schedule:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(62,122,94,0.4); }
.cta-secondary-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--sage);
}
.cta-secondary-link:hover { color: var(--plum); }

@media (max-width: 640px) {
  .article-hero h1 { font-size: 30px; }
  .article-body { padding: 40px 24px 24px; font-size: 17px; }
  .article-body img.hero-portrait { max-height: 420px; }
}

/* ===== FOOTER (identical to main site) ===== */
footer {
  padding: 30px 0;
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--paper);
}
footer .brand { opacity: 0.8; }
footer .brand img { width: 22px; height: 22px; }
footer .brand-text { font-size: 14px; border-left: 0; padding-left: 0; }
footer .brand-text span { display: none; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
a:focus-visible, button:focus-visible { outline: 2px solid var(--mustard); outline-offset: 2px; }

/* ============================================================
   v2 additions (Oct 2026)
   1) Obvious links inside article body text
   2) "Related Articles" block after each post's CTA
   To change the link color, edit the three --blog-link* variables
   below (previous plum set: #4A2D5C / #2B1639 / #F1ECF5).
   ============================================================ */
:root {
  --blog-link: #1A5FB4;        /* blue, 6.3:1 on white, ~5.7:1 on the page grey */
  --blog-link-hover: #0B3D7A;  /* darker blue */
  --blog-link-tint: #EAF2FB;   /* light blue tint behind hovered link */
}

.article-body a,
.article-body a:visited {
  color: var(--blog-link);
  font-weight: 600;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-color: currentColor;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  border-radius: 3px;
  transition: background-color 0.15s, color 0.15s;
}
.article-body a:hover,
.article-body a:focus-visible {
  color: var(--blog-link-hover);
  text-decoration-thickness: 3px;
  background-color: var(--blog-link-tint);
}
.article-body a:focus-visible {
  outline: 3px solid var(--blog-link-hover);
  outline-offset: 2px;
}
/* Links to other sites: small arrow after the text. Booking links
   (cal.com) already end with their own arrow, so they are skipped. */
.article-body a[target="_blank"]:not([href*="cal.com"])::after {
  content: "\2197";
  content: "\2197" / " (opens in a new tab)";
  display: inline-block;
  margin-left: 0.2em;
  font-size: 0.85em;
  text-decoration: none;
}

/* ---------- Related Articles ---------- */
.related {
  background: var(--paper);
  padding: 64px 0 72px;
  border-top: 1px solid var(--paper-warm);
}
.related .wrap { max-width: 1120px; }
.related-kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss-deep);
  margin-bottom: 6px;
}
.related h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 0 0 28px;
  color: var(--ink);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.related-grid.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(46,36,56,0.07), 0 10px 24px rgba(46,36,56,0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover,
.related-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(46,36,56,0.10), 0 18px 36px rgba(46,36,56,0.14);
}
.related-card:focus-visible { outline: 3px solid var(--blog-link-hover); outline-offset: 3px; }
.related-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  margin: 0;
}
.related-card-thumb { display: block; padding: 10px 10px 0; }
.related-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px 22px;
  flex: 1;
}
.related-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss-deep);
}
.related-title {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.related-card:hover .related-title,
.related-card:focus-visible .related-title {
  color: var(--blog-link);
  text-decoration-color: currentColor;
}
.related-meta { margin-top: auto; padding-top: 4px; font-size: 14px; color: var(--ink-soft); }

@media (max-width: 1000px) {
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .related { padding: 48px 0 56px; }
  .related h2 { font-size: 26px; }
  .related-grid,
  .related-grid.is-two { grid-template-columns: 1fr; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .related-card, .related-title, .article-body a { transition: none; }
  .related-card:hover, .related-card:focus-visible { transform: none; }
}

/* ===== v3: reading progress bar ===== */
.read-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 1000;
  pointer-events: none;
  background: transparent;
}
.read-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: #1A5FB4;
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

/* ===== v3: "More from After Hours" story bar ===== */
.ah-nav {
  background: var(--paper);
  padding: 56px 0 8px;
  border-top: 1px solid var(--paper-warm);
}
.ah-nav .wrap { max-width: 1120px; }
.ah-nav .related-kicker { margin-bottom: 6px; }
.ah-nav h2 {
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.3px;
  margin: 0 0 24px;
  color: var(--ink);
}
.ah-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.ah-grid.is-single { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ah-grid.is-single .related-card { grid-column: 2; }
.ah-nav .related-card { flex-direction: row; align-items: stretch; }
.ah-nav .related-card-thumb { flex: 0 0 42%; padding: 10px; }
.ah-nav .related-card-body { padding: 14px 20px 18px 6px; justify-content: center; }
.ah-nav .related-card img { height: 100%; }
/* related section follows directly; drop its top rule/gap duplication */
.ah-nav + .related { border-top: 0; padding-top: 40px; }

@media (max-width: 1000px) {
  .ah-nav .related-card { flex-direction: column; }
  .ah-nav .related-card-thumb { flex: none; padding: 10px 10px 0; }
  .ah-nav .related-card img { height: auto; }
  .ah-nav .related-card-body { padding: 16px 20px 22px; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ah-nav { padding: 44px 0 4px; }
  .ah-grid, .ah-grid.is-single { grid-template-columns: 1fr; gap: 20px; }
  .ah-grid.is-single .related-card { grid-column: auto; }
}

/* ===== v3: figures with captions, and a soft inline callout ===== */
.article-body figure.article-figure { margin: 8px 0 32px; }
.article-body figure.article-figure img { display: block; width: 100%; height: auto; margin: 0 0 10px; }
.article-body figure.article-figure figcaption { font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); }
.article-body .callout {
  margin: 40px 0 8px;
  padding: 22px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--moss);
  border-radius: 12px;
  font-size: 17px;
  line-height: 1.65;
}
.article-body .callout p { margin: 0; }
@media (max-width: 640px) { .article-body .callout { padding: 18px 18px; } }

/* byline can wrap when it carries Published + Updated */
/* article header: side gutters on small screens (was flush to the screen edge) and a byline that wraps by item */
@media (max-width: 1240px) { .article-hero.wrap { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 640px) { .article-hero.wrap { padding-left: 24px; padding-right: 24px; } }
.article-byline { flex-wrap: wrap; row-gap: 6px; }
.article-byline > * { flex: 0 0 auto; }
@media (max-width: 640px) {
  .article-byline { column-gap: 14px; }
  .article-byline .dot { display: none; }
}
