.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--dark); color: #fff; padding: 12px 20px; font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ========================================
   JAMACARE — SHARED BLOG STYLES
   Mirrors the palette, typography, nav and footer of index.html.
   Loaded by /blog/ and /blog/<slug>/ pages.
======================================== */
:root {
  --teal:        #1a7a5e;
  --teal-light:  #e6f4ef;
  --teal-mid:    #28a07a;
  --teal-soft:   #d0ece4;
  --gold:        #c97b42;
  --gold-light:  #fdf3e8;
  --gold-soft:   #f5c98a;
  --warm-bg:     #faf7f3;
  --warm-card:   #fff9f4;
  --cream:       #f5f0ea;
  --dark:        #1e3530;
  --dark-mid:    #2e4a43;
  --text:        #3a4f47;
  --muted:       #455a50; /* 7.4:1 on white — matches index.html token */
  --teal-text:   #0f5a43;
  --border:      #dde9e4;
  --border-soft: #ede8e0;
  --white:       #ffffff;
  --radius-sm:   10px;
  --radius:      18px;
  --radius-lg:   24px;
  --radius-pill: 999px;
  --shadow-sm:   0 2px 12px rgba(26,122,94,.08);
  --shadow:      0 6px 24px rgba(26,122,94,.10);
  --shadow-lg:   0 12px 40px rgba(26,122,94,.13);
}

/* -- RESET -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Lora', serif; line-height: 1.25; }
a { transition: color .2s; }
img { max-width: 100%; display: block; }

/* Designed keyboard focus (teal on light, gold on dark surfaces) */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal-mid);
  outline-offset: 2px;
  border-radius: 4px;
}
nav a:focus-visible, .mobile-nav a:focus-visible, .hamburger:focus-visible,
.post-header a:focus-visible, footer a:focus-visible {
  outline-color: var(--gold-soft);
}
.btn-ico { width: 1em; height: 1em; vertical-align: -.125em; margin-right: 7px; display: inline-block; }

/* ========================================
   NAVIGATION
======================================== */
nav {
  background: var(--dark);
  padding: 0 max(5%, calc(50% - 600px)); /* caps content at 1200px on wide screens */
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  min-height: 70px;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Lora', serif;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: .5px;
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}
.nav-links a {
  color: rgba(255,255,255,.78);
  text-decoration: none;
  font-size: .87rem;
  font-weight: 400;
  letter-spacing: .3px;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--white); }
.nav-phone {
  background: var(--teal) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  font-size: .875rem !important;
  white-space: nowrap;
  transition: background .2s ease-out;
}
.nav-phone:hover { background: var(--teal-mid) !important; color: var(--white) !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 14px 10px; /* 44x44 touch target */
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  background: var(--dark-mid);
  padding: 0 5%;
  gap: 16px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height .25s ease-out, opacity .2s ease-out, padding .25s ease-out, visibility 0s linear .25s;
}
.mobile-nav a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: 1rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav.open {
  max-height: 900px; /* room for 11 menu items (was 600px, which clipped the last items) */
  opacity: 1;
  padding: 20px 5%;
  visibility: visible;
  border-top: 1px solid rgba(255,255,255,.08);
  transition: max-height .25s ease-out, opacity .2s ease-out, padding .25s ease-out;
}

/* ========================================
   BUTTONS
======================================== */
.btn-primary {
  background: var(--teal-mid);
  color: var(--white);
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: .9375rem;
  transition: background .2s, transform .15s, box-shadow .2s;
  display: inline-block;
  box-shadow: 0 4px 16px rgba(40,160,122,.35);
}
.btn-primary:hover { background: var(--teal); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(40,160,122,.45); }

/* ========================================
   SECTION HELPERS
======================================== */
.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.warm-bg { background: var(--warm-bg); }
.cream-bg { background: var(--cream); }

/* ========================================
   BLOG — POST HEADER
   Typographic dark header (no stock photography).
======================================== */
.post-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 100%);
  color: var(--white);
  padding: 72px 5% 64px;
}
.post-header-inner { max-width: 760px; margin: 0 auto; }
.post-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 16px;
}
.post-header h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--white);
  margin-bottom: 20px;
}
.post-byline {
  font-size: .9375rem;
  color: rgba(255,255,255,.75);
  font-style: italic;
}

/* ========================================
   BLOG — ARTICLE BODY
======================================== */
.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 5% 24px;
}
.post-body h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  color: var(--dark);
  margin: 44px 0 16px;
}
.post-body p { margin-bottom: 18px; font-size: 1.06rem; }
.post-body ul, .post-body ol { margin: 0 0 22px 1.3em; }
.post-body li { margin-bottom: 12px; font-size: 1.06rem; }
.post-body a { color: var(--teal); font-weight: 500; }
.post-body a:hover { color: var(--teal-mid); }
.post-body strong { color: var(--dark); }

/* Founder note callout */
.founder-note {
  background: var(--warm-card);
  border: 1px solid var(--border-soft);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 30px 32px;
  margin: 40px 0 8px;
}
.founder-note h2 { margin-top: 0; }
.founder-signoff { font-style: italic; color: var(--muted); margin-bottom: 0; }

/* ========================================
   BLOG — RELATED POSTS
======================================== */
.related {
  max-width: 760px;
  margin: 16px auto 0;
  padding: 0 5%;
}
.related h2 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 18px;
}
.related-list { display: grid; gap: 14px; }
.related-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.related-card:hover { border-color: var(--teal-soft); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.related-card .rc-label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 6px;
}
.related-card .rc-title { font-family: 'Lora', serif; font-size: 1.05rem; color: var(--dark); }

/* ========================================
   BLOG — INDEX LISTING
======================================== */
.blog-index { max-width: 1000px; margin: 0 auto; padding: 64px 5%; }
.blog-index-header { text-align: center; margin-bottom: 48px; }
.blog-index-header h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--dark);
  margin-bottom: 14px;
}
.blog-index-header p { color: var(--muted); max-width: 560px; margin: 0 auto; font-weight: 400; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--warm-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.post-card:hover { border-color: var(--teal-soft); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card .pc-meta {
  font-size: .8125rem;
  color: var(--muted);
  letter-spacing: .3px;
  margin-bottom: 12px;
}
.post-card h2 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.post-card p { font-size: 1rem; color: var(--text); margin-bottom: 18px; flex-grow: 1; }
.post-card .pc-readmore { font-size: .9375rem; font-weight: 600; color: var(--teal); }

/* ========================================
   FOOTER
======================================== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  padding: 54px max(5%, calc(50% - 600px)) 30px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand .nav-logo { display: block; margin-bottom: 14px; }
.footer-brand p { font-size: .875rem; line-height: 1.75; max-width: 290px; }
.footer-col h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: .3px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .875rem; color: rgba(255,255,255,.75); text-decoration: none; transition: color .15s; display: inline-block; padding: 2px 0; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8125rem;
}
.footer-bottom a { color: rgba(255,255,255,.85); }
.footer-cqc {
  background: rgba(40,160,122,.14);
  border: 1px solid rgba(40,160,122,.28);
  border-radius: var(--radius-sm);
  padding: 7px 15px;
  font-size: .8125rem;
  color: rgba(255,255,255,.75);
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 520px) {
  nav { padding: 0 4%; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-body { padding: 40px 6% 16px; }
  .post-header { padding: 56px 6% 48px; }
}

/* ========================================
   404 — DESTINATION PILLS
======================================== */
.pill-links { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill-links a {
  display: inline-block;
  padding: 12px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--teal);
  font-weight: 500;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.pill-links a:hover { border-color: var(--teal-soft); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

/* ========================================
   PRINT
======================================== */
@media print {
  nav, .mobile-nav, .hamburger, .skip-link, .related, .pill-links, .btn-primary { display: none !important; }
  body { background: #fff; color: #000; }
  .post-header { background: none; color: #000; padding: 16px 0; }
  .post-header h1 { color: #000; }
  .post-byline { color: #333; }
  .post-body a { color: #000; }
  .founder-note { box-shadow: none; break-inside: avoid; }
  footer { background: none; color: #000; padding: 16px 0; }
  .footer-grid, .footer-cqc { display: none; }
  .footer-bottom { border-top: 1px solid #999; color: #000; }
  .footer-bottom a { color: #000; }
}
