html[data-theme="dark"]{--dark-bg:#081f1a;--dark-surface:#102f27;--dark-raised:#173e33;--dark-text:#edf3ef;--dark-muted:#b8c9c1;--dark-accent:#9bd4bd;--dark-line:#3c5c52}
html[data-theme="dark"] body,html[data-theme="dark"] main{background:var(--dark-bg)!important;color:var(--dark-text)!important}
html[data-theme="dark"] .statement,html[data-theme="dark"] .statement strong,html[data-theme="dark"] .coreIntro h1,html[data-theme="dark"] .coreIntro h2,html[data-theme="dark"] .coreIntro h3{color:var(--dark-text)!important}
html[data-theme="dark"] .statement strong,html[data-theme="dark"] .coreCards span,html[data-theme="dark"] .coreCards b,html[data-theme="dark"] .materialsGrid span,html[data-theme="dark"] .materialsGrid b,html[data-theme="dark"] .kicker,html[data-theme="dark"] .eyebrow{color:var(--dark-accent)!important}
html[data-theme="dark"] .coreCards{background:var(--dark-line)!important;border-color:var(--dark-line)!important}
html[data-theme="dark"] .coreCards>a{background:var(--dark-surface)!important;color:var(--dark-text)!important;border-color:var(--dark-line)!important}
html[data-theme="dark"] .coreCards>a:hover,html[data-theme="dark"] .coreCards>a:focus-visible{background:var(--dark-raised)!important}
html[data-theme="dark"] .coreCards h2,html[data-theme="dark"] .coreCards p{color:var(--dark-text)!important;opacity:1!important}
html[data-theme="dark"] .coreCards p,html[data-theme="dark"] .materialsGrid p,html[data-theme="dark"] .card p,html[data-theme="dark"] .tech p,html[data-theme="dark"] small{color:var(--dark-muted)!important}
html[data-theme="dark"] .articleHub{background:#0d2922!important;color:var(--dark-text)!important;border-color:var(--dark-line)!important}
html[data-theme="dark"] .articleHubTab{background:var(--dark-surface)!important;color:var(--dark-text)!important;border-color:var(--dark-line)!important}
html[data-theme="dark"] .articleHubTab.active{background:#2a6652!important;color:#fff!important}
html[data-theme="dark"] .articleHubPanel,html[data-theme="dark"] .articleHubMeta{color:var(--dark-text)!important;border-color:var(--dark-line)!important}
html[data-theme="dark"] .articleHubPanel p,html[data-theme="dark"] .articleHubLead{color:var(--dark-muted)!important}
html[data-theme="dark"] .pageHero,html[data-theme="dark"] .documentHero,html[data-theme="dark"] .roadmapHero{background-color:#102c25!important;color:var(--dark-text)!important}
html[data-theme="dark"] .watershed,html[data-theme="dark"] .stages,html[data-theme="dark"] .tabs,html[data-theme="dark"] .tabs button,html[data-theme="dark"] .start,html[data-theme="dark"] .pilotCalculator,html[data-theme="dark"] .calcResults,html[data-theme="dark"] .plannerResults,html[data-theme="dark"] .acc.open{background:var(--dark-surface)!important;color:var(--dark-text)!important;border-color:var(--dark-line)!important}
html[data-theme="dark"] .tabs button.active,html[data-theme="dark"] .stage:not(.active):hover,html[data-theme="dark"] .acc.open>button{background:var(--dark-raised)!important}
html[data-theme="dark"] .detail,html[data-theme="dark"] .stage.active{background:#194a3b!important;color:#fff!important}
html[data-theme="dark"] .phaseDetail{background:var(--dark-surface)!important;color:var(--dark-text)!important}
html[data-theme="dark"] .phaseDetail p,html[data-theme="dark"] .phaseDetail dd{color:var(--dark-muted)!important}
html[data-theme="dark"] .phaseButton.active{background:var(--dark-raised)!important;color:#fff!important}
html[data-theme="dark"] .milestoneSection{background:#18372e!important}html[data-theme="dark"] .progressRing:before{background:#18372e!important}html[data-theme="dark"] .progressRing b,html[data-theme="dark"] .progressRing span{color:#f3f8f5!important}
html[data-theme="dark"] .checkGrid small,html[data-theme="dark"] .sourceArticle>p,html[data-theme="dark"] .chapterBody p,html[data-theme="dark"] .docArticle p{color:#d4e0da!important}
html[data-theme="dark"] .sourceTitle,html[data-theme="dark"] .sourceSubtitle,html[data-theme="dark"] .sourceArticle h3,html[data-theme="dark"] .docLead,html[data-theme="dark"] .chapterBody h3,html[data-theme="dark"] .backTop{color:var(--dark-accent)!important}
html[data-theme="dark"] .articleIndexHead{background:#194a3b!important;color:#fff!important}
html[data-theme="dark"] .articleIndexLink b,html[data-theme="dark"] .treeRoot b,html[data-theme="dark"] .subRoot b{color:var(--dark-text)!important}
html[data-theme="dark"] .articleIndexLink span,html[data-theme="dark"] .articleIndexLink i,html[data-theme="dark"] .treeRoot span,html[data-theme="dark"] .subRoot span{color:var(--dark-accent)!important}
html[data-theme="dark"] .siteSearchHead h2,html[data-theme="dark"] .searchScope button,html[data-theme="dark"] .sectionSearchActions button{color:var(--dark-text)!important}
html[data-theme="dark"] .searchResultPage,html[data-theme="dark"] .siteSearchStatus,html[data-theme="dark"] .sectionSearchStatus{color:var(--dark-accent)!important}
html[data-theme="dark"] .searchResult>span:last-child,html[data-theme="dark"] .searchEmpty{color:var(--dark-muted)!important}
html[data-theme="dark"] .legacyGalleryControls button{background:var(--dark-raised)!important;color:var(--dark-text)!important;border-color:var(--dark-line)!important}
html[data-theme="dark"] a:focus-visible,html[data-theme="dark"] button:focus-visible,html[data-theme="dark"] input:focus-visible{outline-color:#b5ead5!important}
@media(max-width:850px){html[data-theme="dark"] .topbar .nav{background:#0d2922!important;color:var(--dark-text)!important;border-color:var(--dark-line)!important}}
html[data-theme="dark"] .docToc.articleTree>.eyebrow,html[data-theme="dark"] .mobileArticleToc>.eyebrow{background:#0f2c24!important;color:#a7dec8!important;border-color:#3c5c52!important}
html[data-theme="dark"] .docToc.articleTree>.articleTreeList,html[data-theme="dark"] .mobileArticleToc>.articleTreeList{background:#0f2c24!important;color:#edf3ef!important;scrollbar-color:#77b99e #17372f!important}
html[data-theme="dark"] .docToc.articleTree>.articleTreeList::-webkit-scrollbar-track,html[data-theme="dark"] .mobileArticleToc>.articleTreeList::-webkit-scrollbar-track{background:#17372f!important}
html[data-theme="dark"] .docToc.articleTree>.articleTreeList::-webkit-scrollbar-thumb,html[data-theme="dark"] .mobileArticleToc>.articleTreeList::-webkit-scrollbar-thumb{background:#77b99e!important;border-color:#17372f!important}
html[data-theme="dark"] .articleTree button{background:#14382f!important;color:#b4e2cf!important;border-color:#3c5c52!important}
html[data-theme="dark"] .articleTree small{color:#94cbb4!important}
html[data-theme="dark"] .countriesPage .expIntro{background:#081f1a!important;color:#edf3ef!important}
html[data-theme="dark"] .countriesPage .expIntro h2{color:#edf3ef!important}
html[data-theme="dark"] .countriesPage .expIntro h2 strong{color:#9bd4bd!important}
html[data-theme="dark"] .countriesPage .principleGrid{background:#3c5c52!important;border-color:#3c5c52!important}
html[data-theme="dark"] .countriesPage .principleGrid article{background:#102f27!important;color:#edf3ef!important;border-color:#3c5c52!important}
html[data-theme="dark"] .countriesPage .principleGrid article:hover{background:#173e33!important}
html[data-theme="dark"] .countriesPage .principleGrid span{color:#9bd4bd!important}
html[data-theme="dark"] .countriesPage .principleGrid h3{color:#edf3ef!important}
html[data-theme="dark"] .countriesPage .principleGrid p{color:#c8d7d0!important}
html[data-theme="dark"] .countriesPage .compareSection{background:#0b241e!important;color:#edf3ef!important}
html[data-theme="dark"] .countriesPage .compareSection h2{color:#edf3ef!important}
html[data-theme="dark"] .countriesPage .filterRow .filterBtn{background:#102f27!important;color:#dce9e3!important;border-color:#55766b!important}
html[data-theme="dark"] .countriesPage .filterRow .filterBtn:hover{background:#1d493d!important;color:#fff!important}
html[data-theme="dark"] .countriesPage .filterRow .filterBtn.active{background:#9bd4bd!important;color:#082219!important;border-color:#9bd4bd!important}
html[data-theme="dark"] .countriesPage .systemGrid{background:#3c5c52!important;border-color:#3c5c52!important}
html[data-theme="dark"] .countriesPage .systemGrid article{background:#102f27!important;color:#edf3ef!important;border-color:#3c5c52!important}
html[data-theme="dark"] .countriesPage .systemGrid article:hover{background:#173e33!important}
html[data-theme="dark"] .countriesPage .systemGrid span,html[data-theme="dark"] .countriesPage .systemGrid b{color:#9bd4bd!important}
html[data-theme="dark"] .countriesPage .systemGrid h3{color:#edf3ef!important}
html[data-theme="dark"] .countriesPage .systemGrid p{color:#c8d7d0!important}

/* DARK SECTION HERO BACKGROUNDS */
html[data-theme='dark'] .sectionHeroBg{background-color:#08271f!important;background-blend-mode:normal!important;color:#eef7f2!important}
html[data-theme='dark'] .sectionHero--proposal{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.90) 48%,rgba(7,37,29,.52) 100%),url("assets/home/drevo-hero-watershed-v2.png")!important}
html[data-theme='dark'] .sectionHero--philosophy{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.88) 56%,rgba(7,37,29,.50) 100%),url("assets/section-backgrounds/philosophy-hero-v2.png")!important}
html[data-theme='dark'] .sectionHero--legacy{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.89) 55%,rgba(7,37,29,.48) 100%),url("assets/core-legacy/image-01.jpg")!important}
html[data-theme='dark'] .sectionHero--mountains{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.87) 52%,rgba(7,37,29,.44) 100%),url("assets/home/drevo-hero-watershed-v2.png")!important}
html[data-theme='dark'] .sectionHero--slopes{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.88) 52%,rgba(7,37,29,.46) 100%),url("assets/core-legacy/image-13.jpg")!important}
html[data-theme='dark'] .sectionHero--timber{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.90) 55%,rgba(7,37,29,.50) 100%),url("assets/core-legacy/image-24.jpg")!important}
html[data-theme='dark'] .sectionHero--plant-id{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.88) 48%,rgba(7,37,29,.28) 78%),url("assets/section-backgrounds/drevo-plant-id-hero-20260909.png")!important}
html[data-theme='dark'] .sectionHero--plant-guilds{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.86) 48%,rgba(7,37,29,.24) 78%),url("assets/section-backgrounds/plant-guilds-hero-20260909.png")!important}
html[data-theme='dark'] .sectionHero--rootstocks{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.86) 48%,rgba(7,37,29,.24) 78%),url("assets/section-backgrounds/drevo-rootstocks-hero-20260909.png")!important}
html[data-theme='dark'] .sectionHero--timber-reserve{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.86) 48%,rgba(7,37,29,.22) 78%),url("assets/section-backgrounds/timber-reserve-hero-20260909.png")!important}
html[data-theme='dark'] .sectionHero--initiative{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.86) 50%,rgba(7,37,29,.42) 100%),url("assets/section-backgrounds/international-initiative-hero-v2.png")!important}
html[data-theme='dark'] .sectionHero--countries{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.84) 48%,rgba(7,37,29,.40) 100%),url("assets/home/drevo-hero-watershed-v2.png")!important}
html[data-theme='dark'] .sectionHero--roadmap{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.84) 48%,rgba(7,37,29,.40) 100%),url("assets/section-backgrounds/implementation-hero-v2.png")!important}
html[data-theme='dark'] .sectionHero--observatory{background-image:linear-gradient(90deg,rgba(4,25,20,.82) 0%,rgba(5,31,25,.55) 44%,rgba(4,27,23,.16) 76%),url("assets/observatory/living-mountain-observatory-hero-v2.png")!important;background-position:center 50%!important}
html[data-theme='dark'] .sectionHero--coastal{background-image:linear-gradient(90deg,rgba(5,29,23,.97) 0%,rgba(7,37,29,.85) 48%,rgba(7,37,29,.40) 100%),url("assets/home/drevo-hero-watershed-v2.png")!important}
html[data-theme='dark'] .sectionHeroBg h1,html[data-theme='dark'] .sectionHeroBg h2,html[data-theme='dark'] .sectionHeroBg p,html[data-theme='dark'] .sectionHeroBg .kicker,html[data-theme='dark'] .sectionHeroBg .eyebrow{color:#f1f8f4!important;text-shadow:0 2px 20px rgba(0,0,0,.46)}
html[data-theme='dark'] .sectionHeroBg .coreMeta span,html[data-theme='dark'] .sectionHeroBg .expMeta span{background:rgba(4,27,21,.58)!important;border-color:rgba(194,225,211,.34)!important;color:#e7f4ed!important;backdrop-filter:blur(8px)}
@media(max-width:850px){html[data-theme='dark'] .sectionHeroBg{background-position:62% center!important}}
/* END DARK SECTION HERO BACKGROUNDS */


/* Keep generated hero artwork visible after the generic dark-theme colors. */
html[data-theme='dark'] .expHero.roadmapHero.sectionHero--roadmap{
  background:linear-gradient(90deg,rgba(5,29,23,.94) 0%,rgba(7,37,29,.72) 46%,rgba(7,37,29,.28) 100%),url("assets/section-backgrounds/implementation-hero-v2.png") center 48%/cover no-repeat!important;
  background-blend-mode:normal!important
}
/* High-contrast language menu in dark theme */
html[data-theme='dark'] .languageMenu{
  background:#0b3028!important;
  border-color:#5f8e7d!important;
  box-shadow:0 20px 52px rgba(0,0,0,.58)!important
}
html[data-theme='dark'] .languageMenu a{
  color:#f4f7f2!important;
  border-bottom-color:rgba(181,215,201,.22)!important;
  opacity:1!important
}
html[data-theme='dark'] .languageMenu a:hover,
html[data-theme='dark'] .languageMenu a:focus-visible{
  background:#1c5747!important;
  color:#ffffff!important;
  outline:2px solid #9bd4bd;
  outline-offset:-2px
}
html[data-theme='dark'] .languageMenu a.active{
  background:#2b6d59!important;
  color:#ffffff!important;
  font-weight:800;
  box-shadow:inset 3px 0 0 #b9ead5
}

/* Readable article contents and document search, including translated pages. */
html .rootstocksArticleIndex .rootstocksIndexGrid a,
html .rootstocksArticleIndex .rootstocksIndexGrid a > span {
  font-size:16px!important;
  line-height:1.45!important;
  overflow-wrap:anywhere;
}
html .rootstocksArticleIndex .rootstocksIndexGrid .rootstocksIndexNumber {font-size:14px!important;}
html .rootstocksArticleIndex .rootstocksIndexHead span {font-size:12px!important;}
html .documentTools label {
  font-size:14px!important;
  line-height:1.45!important;
  letter-spacing:.06em!important;
}
html .documentTools input {font-size:16px!important;}
html[data-theme='dark'] .rootstocksArticleIndex .rootstocksIndexGrid a,
html[data-theme='dark'] .rootstocksArticleIndex .rootstocksIndexGrid a > span {color:#edf7f2!important;}
html[data-theme='dark'] .rootstocksArticleIndex .rootstocksIndexGrid a {background:#102f27!important;}
html[data-theme='dark'] .rootstocksArticleIndex .rootstocksIndexGrid .rootstocksIndexNumber,
html[data-theme='dark'] .rootstocksArticleIndex .rootstocksIndexGrid a::after,
html[data-theme='dark'] .rootstocksArticleIndex .rootstocksIndexHead span,
html[data-theme='dark'] .documentTools label,
html[data-theme='dark'] .documentTools #searchStatus {color:#b9ddcd!important;}
html[data-theme='dark'] .documentTools input {
  background:#102f27!important;
  color:#edf7f2!important;
}
html[data-theme='dark'] .documentTools input::placeholder {
  color:#b9ddcd!important;
  opacity:1;
}
html .rootstocksArticleIndex .rootstocksIndexGrid a:focus-visible,
html .documentTools input:focus-visible {
  outline:2px solid currentColor;
  outline-offset:-2px;
}
