/* WiK Codex Herb Guide: keep V2 Resource Guide as the single visual reference.
   No CSS gap; no changes to shared V2 styles or language handlers. */
body.wik-v2[data-page="tips-herb-guide"] .backdrop { background-image: url("../assets/tips/herb-guide/background.webp"); background-position: center center; }
body.wik-v2.herb-guide-page .resource-guide-main { margin-top: 0; }
.herb-guide-intro { margin-bottom: 0; }
.herb-guide-toc { margin: 0.8rem 0 1.2rem; scroll-margin-top: 1rem; }
.herb-guide-toc-heading { margin-bottom: 0.7rem; }
.herb-guide-toc-group, .herb-guide-division { margin: 1.1rem 0 0.55rem; color: #f2f2f2; font-size: 0.875rem; font-weight: 500; line-height: 1.5; }
.herb-guide-toc-group:first-of-type { margin-top: 0.35rem; }
.herb-guide-toc-link { display: flex; align-items: center; min-width: 0; padding: 0.72rem 0.1rem; color: #f2f2f2; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.14); }
.herb-guide-toc-link:last-child { border-bottom: 0; }
.herb-guide-toc-num { flex: 0 0 2.25rem; color: #d6aa4f; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.herb-guide-toc-copy { flex: 1 1 auto; min-width: 0; }
.herb-guide-toc-title { display: block; color: #f2f2f2; font-size: 0.8125rem; font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
.herb-guide-toc-subtitle { display: block; margin-top: 0.15rem; color: rgba(242,242,242,0.66); font-size: 0.75rem; line-height: 1.5; overflow-wrap: anywhere; }
.herb-guide-toc-arrow { flex: 0 0 auto; margin-left: 0.5rem; color: #d6aa4f; font-size: 0.9rem; }
.herb-guide-toc-link:hover { background: rgba(255,255,255,0.06); }
.herb-guide-toc-link:focus-visible, .herb-guide-back:focus-visible { outline: 2px solid #f3d27a; outline-offset: 2px; }
.herb-guide-section { scroll-margin-top: 0.9rem; }
.herb-guide-division + .herb-guide-section { margin-top: 0; }
.herb-guide-section + .herb-guide-section { margin-top: clamp(1em,4vw,1.35em); }
.herb-guide-section .resource-guide-cover { aspect-ratio: 2 / 1; }
.herb-guide-section .resource-guide-cover-image { object-fit: cover; }
.herb-guide-section .resource-guide-cover-title { max-width: 100%; overflow-wrap: anywhere; }
.herb-guide-paragraph, .herb-guide-list, .herb-guide-event-emphasis { margin: 0.65rem 0 0; color: rgba(242,242,242,0.88); font-size: 0.8125rem; font-weight: 400; line-height: 1.72; letter-spacing: 0; overflow-wrap: break-word; }
.herb-guide-section > .herb-guide-paragraph:first-of-type { margin-top: 0.86rem; }
.herb-guide-section .herb-guide-point { margin-top: 0.85rem; }
.herb-guide-section .herb-guide-point-text { margin: 0; font-size: 0.75rem; font-weight: 400; line-height: 1.7; }
.herb-guide-section .herb-guide-point-label { margin-bottom: 0.2rem; }
.herb-guide-group-title { margin: 1.3rem 0 0.4rem; padding-bottom: 0.4rem; border-bottom: 1px solid rgba(255,255,255,0.15); font-size: 0.875rem; color: #f2f2f2; font-weight: 500; line-height: 1.5; }
.herb-guide-event { margin: 0.7rem 0 0; }
.herb-guide-event + .herb-guide-event { padding-top: 0.85rem; border-top: 1px solid rgba(255,255,255,0.12); }
.herb-guide-event-title { margin: 0.85rem 0 0.28rem; }
.herb-guide-event .herb-guide-paragraph { margin-top: 0.25rem; }
.herb-guide-action-title, .herb-guide-research-title { margin: 0.9rem 0 0.3rem; color: #f2f2f2; font-size: 0.8125rem; font-weight: 500; line-height: 1.55; }
.herb-guide-list { padding-left: 1.5rem; }
.herb-guide-list li { margin-bottom: 0.36rem; }
.herb-guide-list li::marker { color: #d6aa4f; }
.herb-guide-event-emphasis { padding-left: 0.68rem; border-left: 2px solid rgba(214,170,79,0.78); }
.herb-guide-related-link, .herb-guide-back { display: inline-block; max-width: 100%; margin-top: 0.85rem; padding: 0 0 0.16rem; color: #f3d27a; border-bottom: 1px solid rgba(214,170,79,0.58); text-decoration: none; font-size: 0.8125rem; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.herb-guide-related-link:hover, .herb-guide-back:hover { color: #fff0c8; }
.herb-guide-disclaimer { margin: 1.25rem 0 0.7rem; color: rgba(242,242,242,0.68); font-size: 0.75rem; line-height: 1.7; }
html[lang="ru"] .herb-guide-toc-title, html[lang="ru"] .herb-guide-section .resource-guide-cover-title { letter-spacing: 0; }
@media(max-width:24em) { .herb-guide-toc-link { padding-top: 0.6rem; padding-bottom: 0.6rem; } .herb-guide-toc-num { flex-basis: 2rem; } }

/* Approved UI correction: two glass groups, seven unboxed chapters, image-text contrast. */
body.herb-guide-page .herb-guide-toc { position:relative; margin:0.85rem 0 1.3rem; padding:0 0.15rem; }
body.herb-guide-page .herb-guide-group { margin-top:clamp(1rem,4vw,1.35rem); }
body.herb-guide-page .herb-guide-group + .herb-guide-group { margin-top:clamp(1rem,4vw,1.35rem); }
body.herb-guide-page .herb-guide-group > .herb-guide-division { margin:0 0 1.05rem; padding:0 0 0.72rem; border-bottom:1px solid rgba(214,170,79,0.28); color:#f2f2f2; font-size:clamp(0.92rem,3.5vw,1.06rem); font-weight:500; line-height:1.45; }
body.herb-guide-page .herb-guide-section { position:relative; min-width:0; margin:0; padding:0; background:none; border:0; box-shadow:none; backdrop-filter:none; -webkit-backdrop-filter:none; }
body.herb-guide-page .herb-guide-section + .herb-guide-section { margin-top:1.35rem; padding-top:1.35rem; border-top:1px solid rgba(255,255,255,0.14); }
body.herb-guide-page .herb-guide-section .resource-guide-cover { aspect-ratio:2/1; }
body.herb-guide-page .herb-guide-section .resource-guide-cover::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; background:linear-gradient(180deg,rgba(0,0,0,0.38) 0%,rgba(0,0,0,0.09) 33%,rgba(0,0,0,0.22) 59%,rgba(0,0,0,0.83) 100%); }
body.herb-guide-page .herb-guide-section .resource-guide-cover-copy { z-index:2; }
body.herb-guide-page .herb-guide-section .resource-guide-cover-eyebrow { text-shadow:0 1px 3px rgba(0,0,0,1),0 2px 9px rgba(0,0,0,0.95),0 0 16px rgba(0,0,0,0.75); }
body.herb-guide-page .herb-guide-section .resource-guide-cover-title { text-shadow:0 1px 2px rgba(0,0,0,1),0 3px 8px rgba(0,0,0,1),0 5px 20px rgba(0,0,0,0.94); }
@media(max-width:24em) { body.herb-guide-page .herb-guide-section + .herb-guide-section { margin-top:1.12rem; padding-top:1.12rem; } }

/* 2026-11: approved Herb Guide navigation, title hierarchy, event icons and bandit annotation. */
body.wik-v2.herb-guide-page nav.herb-guide-toc.resource-guide-panel {
  margin: 0.85rem 0 1.3rem;
  padding: clamp(0.88em, 3.2vw, 1.2em);
}
body.wik-v2.herb-guide-page .wik-subpage-hero .hero-title {
  font-size: clamp(1.6rem, 6.2vw, 2rem);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
body.wik-v2.herb-guide-page .herb-guide-section .resource-guide-cover-title {
  font-size: clamp(0.95rem, 3.6vw, 1.1rem);
  line-height: 1.32;
  overflow-wrap: anywhere;
}
body.wik-v2.herb-guide-page .herb-guide-event {
  display: flex;
  align-items: flex-start;
  min-width: 0;
}
body.wik-v2.herb-guide-page .herb-guide-event-icon {
  display: block;
  visibility: hidden;
  flex: 0 0 16.66667%;
  width: 16.66667%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.5rem;
  background: rgba(0,0,0,0.26);
  border: 1px solid rgba(214,170,79,0.25);
}
body.wik-v2.herb-guide-page .herb-guide-icon-ready .herb-guide-event-icon {
  visibility: visible;
}
body.wik-v2.herb-guide-page .herb-guide-icon-missing .herb-guide-event-icon {
  display: none;
}
body.wik-v2.herb-guide-page .herb-guide-event-copy {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: clamp(0.52rem, 2.1vw, 0.78rem);
}
body.wik-v2.herb-guide-page .herb-guide-icon-missing .herb-guide-event-copy {
  padding-left: 0;
}
body.wik-v2.herb-guide-page .herb-guide-event-copy > .herb-guide-event-title:first-child {
  margin-top: 0;
}
body.wik-v2.herb-guide-page .herb-guide-event-note {
  margin-top: 0.78rem;
  padding: 0.6rem 0.7rem;
  border-left: 2px solid rgba(214,170,79,0.8);
  border-radius: 0 0.45rem 0.45rem 0;
  background: rgba(5,5,4,0.36);
}
body.wik-v2.herb-guide-page .herb-guide-event-note .herb-guide-point-text {
  margin: 0;
}
