:root {
  --primary: #2e8b57;
  --primary-dark: #1f6b41;
  --accent: #2f7fa6;
  --accent-soft: #d8ecdf;
  --ink: #23302a;
  --muted: #637068;
  --surface: #ffffff;
  --background: #f3f8f4;
  --border: #d8e6dc;
  /* Pico overrides */
  --pico-primary: #2e8b57;
  --pico-primary-hover: #1f6b41;
  --pico-primary-background: #2e8b57;
  --pico-primary-hover-background: #1f6b41;
  --pico-font-family: 'Open Sans', system-ui, sans-serif;
}

body { background-color: #f3f8f4; color: #23302a; font-family: 'Open Sans', system-ui, sans-serif; }
.site-main { min-height: 60vh; }
.section { padding: 2.5rem 0; }

h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; color: #2e8b57; line-height: 1.25; }
h1, .page-title { font-size: 40px; font-weight: 700; }
h2, .block-heading { font-size: 30px; font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }

/* ── Header / nav ───────────────────────────────────── */
.site-header { background: #fff; border-bottom: 3px solid #2e8b57; }
.site-navbar { display: flex; flex-wrap: wrap; align-items: center; }
.site-brand strong { color: #2e8b57; font-family: 'Poppins', sans-serif; font-size: 1.3rem; }
.site-menu { display: flex; flex-wrap: wrap; margin-left: auto; gap: .2rem; }
.site-menu .nav-link { color: #23302a; font-weight: 600; padding: .4rem .7rem; border-radius: 6px; }
.site-menu .nav-link:hover { color: #2e8b57; background: #e8f2eb; }
.nav-burger { display: none; font-size: 1.6rem; cursor: pointer; color: #2e8b57; margin-left: auto; }
.nav-toggle-cb { display: none; }
@media (max-width: 768px) {
  .nav-burger { display: block; }
  .site-menu { display: none; flex-direction: column; flex-basis: 100%; width: 100%; }
  .nav-toggle-cb:checked ~ .site-menu { display: flex; }
}

/* ── Hero ───────────────────────────────────────────── */
.site-hero { background: linear-gradient(135deg, #2e8b57 0%, #1f6b41 100%); color: #fff; padding: 56px 0 60px; margin-bottom: 0; }
.site-hero .hero-title { color: #fff; font-size: 42px; }
.site-hero .hero-lead { color: #dcebe1; font-size: 1.2rem; }
.hero-btn { background: #2f7fa6; border-color: #2f7fa6; color: #fff; --pico-background-color: #2f7fa6; --pico-border-color: #2f7fa6; font-weight: 700; }
.hero-btn:hover { background: #266b8c; border-color: #266b8c; }

/* ── Benefit cards ──────────────────────────────────── */
.benefit-cards { margin: 1rem 0 2rem; gap: 1rem; }
.benefit-card { background: #fff; border: 1px solid var(--border); border-top: 3px solid #2f7fa6; border-radius: 10px; padding: 1.2rem; margin: 0; }
.benefit-card .card-title { font-size: 1.1rem; margin: 0; }
.benefit-card .card-title a { color: #2e8b57; }

/* ── Content ────────────────────────────────────────── */
.site-prose p, .block-paragraph { margin: 0 0 1.1em; }
.block-image, .article-main-image { max-width: 100%; height: auto; border-radius: 8px; margin: 1.1em 0; }
.article-summary { border-left: 4px solid #2f7fa6; background: #d8ecdf; padding: 1em 1.3em; border-radius: 0 8px 8px 0; }
.article-dates { color: #637068; font-size: .9rem; }
.block-quote { border-left: 4px solid #2e8b57; padding-left: 1.2em; color: #637068; font-style: italic; }
.block-list { margin-left: 1.3em; } .block-list li { margin-bottom: .4em; }
.block-table { margin: 0; }
.block-list-item { padding: 1em 0; border-bottom: 1px solid var(--border); }
.list-item-title a { color: #2e8b57; }

/* content body links — scoped, visible */
.site-prose a, .block-paragraph a, .block-list a, .list-item-title a {
  color: #1f6b41; text-decoration: underline; text-decoration-color: rgba(46,139,87,.4);
}
.site-prose a:hover, .block-paragraph a:hover { color: #2e8b57; }

/* ── Cards / category ───────────────────────────────── */
.card-grid { gap: 1.2rem; }
.cat-card, .card-minimal { background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin: 0; }
.card-body { padding: 1rem; }
.card-title a, .horizontal-card h5 a, .card-minimal h5 a { color: #2e8b57; }
.card-minimal { border-left: 3px solid #2f7fa6; padding: .9em 1.2em; }
.read-more-btn { --pico-background-color: #2f7fa6; --pico-border-color: #2f7fa6; background: #2f7fa6; color: #fff; }

/* ── Related ────────────────────────────────────────── */
.related-links { margin-top: 2rem; padding-top: 1.2rem; border-top: 2px solid var(--border); }
.related-list a { color: #1f6b41; }

/* ── ToC ────────────────────────────────────────────── */
.toc-box { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 1em 1.2em; margin-bottom: 1.4em; }
.toc-box h6 { color: #2e8b57; margin-top: 0; }
.toc-box a { color: #23302a; }
.sticky-toc { align-self: flex-start; position: sticky; top: 20px; }
.toc-level-3 { padding-left: 1em; }

/* ── Breadcrumbs ────────────────────────────────────── */
.breadcrumb-bar a { color: #2e8b57; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer { background-color: #1f6b41; color: #dcebe1; padding: 2rem 0 1rem; margin-top: 2rem; }
.site-footer .footer-title { color: #fff; font-family: 'Poppins', sans-serif; }
.site-footer a { color: #dcebe1; }
.site-footer a:hover { color: #fff; }
.footer-links { list-style: none; padding: 0; }
.footer-copyright { margin-top: 1.2rem; opacity: .85; }

/* ── Dropdown submenus ──────────────────────────────── */
.site-menu .has-children { position: relative; }
.site-menu .submenu { display: none; list-style: none; margin: 0; padding: .3rem 0; background: #ffffff; border: 1px solid var(--border); min-width: 230px; box-shadow: 0 8px 20px rgba(46,139,87,.16); z-index: 50; }
.site-menu .submenu li a { display: block; padding: .45rem 1rem; color: #23302a; text-decoration: none; white-space: nowrap; }
.site-menu .submenu li a:hover { background: #f3f8f4; color: #2e8b57; }
@media (min-width: 992px) { .site-menu .has-children:hover > .submenu, .site-menu .has-children:focus-within > .submenu { display: block; position: absolute; top: 100%; left: 0; } }
@media (max-width: 991px) { .site-menu .submenu { display: block; position: static; box-shadow: none; border: none; padding-left: 1rem; } }
