/* VillageLife blog — route-local stylesheet.
   SCOPING RULE: every selector is prefixed with .vlblog. No global resets, no bare element
   selectors, no :root variables, no @import. This file is loaded only by /blog/ pages and
   never by the homepage or any existing page. Palette mirrors the existing site tokens
   (sand #f5efe4, stone #e9e0d1, green #14532d, ink #22301f) using the contrast-corrected
   muted/accent values. */

.vlblog {
  --b-sand: #f5efe4;
  --b-stone: #e9e0d1;
  --b-white: #ffffff;
  --b-green: #14532d;
  --b-green-mid: #166534;
  --b-ink: #22301f;
  --b-muted: #4a5745;
  --b-accent: #8f5420;
  --b-line: #e3dccb;
  --b-radius: 14px;
  --b-shadow: 0 12px 32px rgba(28, 38, 32, .10);
  --b-maxw: 1120px;
  --b-measure: 720px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--b-ink);
  background: var(--b-sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

.vlblog *,
.vlblog *::before,
.vlblog *::after { box-sizing: border-box; }

.vlblog-title,
.vlblog-h1,
.vlblog-h2,
.vlblog-h3,
.vlblog-h4 { color: var(--b-green); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }

.vlblog-h1 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 800; }
.vlblog-h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; margin-top: 1.9em; }
.vlblog-h3 { font-size: 1.15rem; font-weight: 700; margin-top: 1.5em; }
.vlblog-p { margin: 0 0 1.05em; }

.vlblog a { color: var(--b-green-mid); text-decoration: underline; text-underline-offset: 2px; }
.vlblog a:hover { color: var(--b-green); }
.vlblog a:focus-visible,
.vlblog button:focus-visible { outline: 3px solid var(--b-green-mid); outline-offset: 2px; border-radius: 4px; }

.vlblog-wrap { max-width: var(--b-maxw); margin: 0 auto; padding: 0 20px; }

/* header / footer (blog-local; links back to the main site) */
.vlblog-header { background: rgba(249, 245, 236, .96); border-bottom: 1px solid var(--b-line); position: sticky; top: 0; z-index: 20; }
.vlblog-header .vlblog-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.vlblog-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.2rem; color: var(--b-green); text-decoration: none; }
.vlblog-brand:hover { color: var(--b-green); }
.vlblog-brand-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--b-green); color: #fff; display: grid; place-items: center; font-size: 1rem; font-weight: 700; }
.vlblog-brand small { display: block; font-size: .58rem; font-weight: 500; color: var(--b-muted); letter-spacing: .12em; text-transform: uppercase; }
.vlblog-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vlblog-nav a { font-size: .95rem; font-weight: 600; text-decoration: none; color: var(--b-ink); }
.vlblog-nav a:hover { color: var(--b-green); text-decoration: underline; }
.vlblog-cta-btn,
.vlblog-btn {
  display: inline-block; background: var(--b-green); color: #fff; border: none; border-radius: 999px;
  padding: 13px 26px; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.vlblog-cta-btn:hover,
.vlblog-btn:hover { background: #1c6b3a; color: #fff; }
.vlblog-btn-sm { padding: 9px 16px; font-size: .9rem; }

.vlblog-footer { background: #1c2620; color: #c9d4c6; margin-top: 64px; padding: 40px 0 28px; }
.vlblog-footer a { color: #d7e2d4; }
.vlblog-footer a:hover { color: #fff; }
.vlblog-footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 0 0 14px; padding: 0; list-style: none; }
.vlblog-footer .vlblog-fine { font-size: .84rem; color: #b5c7b4; }

/* index */
.vlblog-hero-intro { padding: 46px 0 8px; }
.vlblog-eyebrow { display: inline-block; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--b-green-mid); font-weight: 700; margin-bottom: 10px; }
.vlblog-lede { font-size: 1.1rem; color: var(--b-muted); max-width: 760px; }
.vlblog-notice { background: rgba(20, 83, 45, .06); border: 1px solid rgba(20, 83, 45, .22); border-radius: 12px; padding: 16px 20px; font-size: .95rem; color: var(--b-green); margin: 22px 0 0; max-width: 820px; }

.vlblog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; padding: 34px 0 10px; }
.vlblog-card { background: #fff; border: 1px solid var(--b-line); border-radius: var(--b-radius); overflow: hidden; box-shadow: var(--b-shadow); display: flex; flex-direction: column; }
.vlblog-card-img { width: 100%; height: 178px; object-fit: cover; display: block; background: var(--b-stone); }
.vlblog-card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.vlblog-card-cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--b-accent); font-weight: 700; margin-bottom: 8px; }
.vlblog-card h3 { font-size: 1.14rem; margin: 0 0 8px; }
.vlblog-card h3 a { text-decoration: none; color: var(--b-green); }
.vlblog-card h3 a:hover { text-decoration: underline; }
.vlblog-card p { font-size: .95rem; color: var(--b-muted); margin: 0 0 14px; }
.vlblog-meta { font-size: .82rem; color: var(--b-muted); margin-bottom: 12px; }
.vlblog-readmore { margin-top: auto; font-weight: 600; font-size: .95rem; }
.vlblog-cat-block { margin-top: 42px; padding-top: 6px; border-top: 1px solid var(--b-line); }

/* article */
.vlblog-crumbs { font-size: .87rem; color: var(--b-muted); padding: 22px 0 0; }
.vlblog-crumbs ol { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; }
.vlblog-crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--b-muted); }
.vlblog-article { padding: 18px 0 0; }
.vlblog-article-head { max-width: var(--b-measure); }
.vlblog-byline { font-size: .88rem; color: var(--b-muted); margin: 6px 0 18px; }
.vlblog-factcheck { font-size: .84rem; color: var(--b-muted); border-left: 3px solid var(--b-line); padding-left: 12px; margin: 0 0 20px; }
.vlblog-hero { margin: 6px 0 10px; }
.vlblog-hero img { width: 100%; height: auto; border-radius: var(--b-radius); display: block; }
.vlblog-caption { font-size: .84rem; color: var(--b-muted); margin: 8px 0 26px; }

.vlblog-toc { background: #fff; border: 1px solid var(--b-line); border-radius: 12px; padding: 18px 22px; margin: 0 0 28px; max-width: var(--b-measure); }
.vlblog-toc h2 { font-size: 1rem; margin: 0 0 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--b-muted); }
.vlblog-toc ol { margin: 0; padding-left: 20px; }
.vlblog-toc li { margin-bottom: 6px; font-size: .96rem; }

.vlblog-main { max-width: var(--b-measure); }
.vlblog-main ul,
.vlblog-main ol { padding-left: 22px; margin: 0 0 1.1em; }
.vlblog-main li { margin-bottom: .45em; }
.vlblog-main blockquote { margin: 0 0 1.2em; padding: 4px 0 4px 18px; border-left: 4px solid var(--b-green-mid); color: var(--b-muted); font-style: italic; }
.vlblog-main table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; display: block; overflow-x: auto; }
.vlblog-main th,
.vlblog-main td { border: 1px solid var(--b-line); padding: 9px 12px; text-align: left; vertical-align: top; }
.vlblog-main th { background: var(--b-stone); color: var(--b-green); font-weight: 700; }
.vlblog-main code { background: var(--b-stone); padding: 2px 5px; border-radius: 5px; font-size: .92em; }
.vlblog-main hr { border: none; border-top: 1px solid var(--b-line); margin: 34px 0; }

.vlblog-sources { background: #fff; border: 1px solid var(--b-line); border-radius: 12px; padding: 20px 24px; margin: 40px 0 0; max-width: var(--b-measure); }
.vlblog-sources h2 { font-size: 1.05rem; margin: 0 0 12px; }
.vlblog-sources ol { margin: 0; padding-left: 20px; font-size: .93rem; }
.vlblog-sources li { margin-bottom: 10px; }
.vlblog-source-note { font-size: .82rem; color: var(--b-muted); margin: 10px 0 0; }

.vlblog-cta { background: var(--b-green); color: #fff; border-radius: var(--b-radius); padding: 30px 28px; margin: 40px 0 0; max-width: var(--b-measure); }
.vlblog-cta p { color: #d8ecd9; margin: 0 0 18px; }
.vlblog-cta .vlblog-btn { background: #fff; color: var(--b-green); }
.vlblog-cta .vlblog-btn:hover { background: #e6efe7; color: var(--b-green); }

.vlblog-share { margin: 34px 0 0; padding: 20px 0 0; border-top: 1px solid var(--b-line); max-width: var(--b-measure); }
.vlblog-share h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; color: var(--b-muted); }
.vlblog-share-list { display: flex; gap: 10px; flex-wrap: wrap; padding: 0; margin: 0; list-style: none; }
.vlblog-share-link { border: 1px solid var(--b-line); border-radius: 999px; padding: 8px 16px; font-size: .9rem; font-weight: 600; background: #fff; color: var(--b-green); text-decoration: none; display: inline-block; }
.vlblog-share-link:hover { background: var(--b-stone); color: var(--b-green); }
.vlblog-share-copied { font-size: .85rem; color: var(--b-muted); margin: 10px 0 0; }

.vlblog-related { margin: 44px 0 0; }
.vlblog-related h2 { font-size: 1.2rem; }
.vlblog-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.vlblog-related li { background: #fff; border: 1px solid var(--b-line); border-radius: 12px; padding: 16px 18px; }
.vlblog-related a { font-weight: 700; text-decoration: none; }
.vlblog-related a:hover { text-decoration: underline; }
.vlblog-related span { display: block; font-size: .9rem; color: var(--b-muted); margin-top: 4px; }

.vlblog-backlink { margin: 30px 0 0; font-size: .95rem; }

@media (max-width: 640px) {
  .vlblog { font-size: 16px; }
  .vlblog-header .vlblog-wrap { min-height: 60px; }
  .vlblog-nav { gap: 12px; }
  .vlblog-nav a { font-size: .9rem; }
  .vlblog-card-img { height: 160px; }
}
