/* HerbalDepEcoNa | Educational Guides V1.0 | 2026-12-01
   Add-on to Buying Guides V5.1.3. Load after base CSS.
   Opt-in: outer Group has both hde-bg and hde-edu. */
.hde-bg.hde-edu {
  --edu-green: #244936;
  --edu-soft: #eff5f1;
  --edu-line: #dce6e0;
  --edu-blue: #245c75;
  min-width: 0;
}
.hde-bg.hde-edu .hde-bg-section { min-width: 0; }
.hde-bg.hde-edu .hde-bg-section h2 {
  color: var(--edu-green);
  border-inline-start: 4px solid var(--edu-green);
  padding-inline-start: 12px;
  overflow-wrap: anywhere;
}
.hde-bg.hde-edu :is(#key-takeaways,#sources) { background: var(--edu-soft); }
.hde-bg.hde-edu #key-takeaways li { margin-block: .5em; line-height: 1.65; }
.hde-bg.hde-edu #key-takeaways li::marker { color: var(--edu-green); }
/* Reuse the existing list and anchors; keep DOM order and semantics. */
.hde-bg.hde-edu #on-this-page ul.wp-block-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  padding: 0;
  margin-inline: 0;
  list-style: none;
}
.hde-bg.hde-edu #on-this-page ul.wp-block-list li { margin: 0; min-width: 0; }
.hde-bg.hde-edu #on-this-page ul.wp-block-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  box-sizing: border-box;
  border: 1px solid var(--edu-line);
  border-radius: 10px;
  background: var(--edu-soft);
  color: var(--edu-blue);
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.hde-bg.hde-edu #on-this-page ul.wp-block-list a:hover { background: #e0eee5; }
/* FAQ answers stay visible. No accordion or JavaScript. */
.hde-bg.hde-edu #faq h3 {
  background: #f4f7f6;
  border-radius: 10px 10px 0 0;
  padding: 14px 16px 8px;
  margin-block: 20px 0;
  color: var(--edu-green);
  overflow-wrap: anywhere;
}
.hde-bg.hde-edu #faq h3 + p {
  background: #f4f7f6;
  border-radius: 0 0 10px 10px;
  padding: 0 16px 14px;
  margin-block-start: 0;
}
/* Apply optional classes to existing paragraphs, not new content. */
.hde-bg.hde-edu .hde-edu-safety {
  background: #fff8ec;
  border-inline-start: 4px solid #795018;
  border-radius: 8px;
  padding: 16px 18px;
  color: #374151;
}
.hde-bg.hde-edu .hde-edu-related {
  background: var(--edu-soft);
  border: 1px solid var(--edu-line);
  border-radius: 12px;
  padding: 16px 18px;
}
/* Only the existing featured-image block receives this optional class. */
.hde-bg.hde-edu .hde-edu-featured { max-width: 800px; margin-inline: auto; }
.hde-bg.hde-edu .hde-edu-featured img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  margin-inline: auto;
}
.hde-bg.hde-edu .wp-block-table { max-width: 100%; min-width: 0; overflow-x: auto; }
.hde-bg.hde-edu .wp-block-table :is(th,td) { overflow-wrap: anywhere; }
.hde-bg.hde-edu a:focus-visible { outline: 3px solid #b67825; outline-offset: 3px; }
@media (max-width: 600px) {
  .hde-bg.hde-edu #on-this-page ul.wp-block-list { grid-template-columns: minmax(0,1fr); }
  .hde-bg.hde-edu .hde-bg-section h2 { padding-inline-start: 9px; }
  .hde-bg.hde-edu .hde-edu-featured img { border-radius: 12px; }
  .hde-bg.hde-edu .hde-edu-safety, .hde-bg.hde-edu .hde-edu-related { padding: 12px; }
}
