/* =====================================================
   ViriX Ayurveda — Herb Encyclopedia page (page-specific styles)
   Mobile-first: base = 320px, then min-width overrides at
   375 / 390 / 430 / 768 / 1024 / 1280 / 1440 / 1920px where a
   section actually changes layout. Colors use the sitewide
   --ay-* custom properties already defined in ayurveda.css.
   20 advanced UI/UX features per the approved plan doc.
   ===================================================== */

/* ---------- 1. reading progress bar ---------- */
.ay-reading-progress {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 3px;
  background: transparent;
}
.ay-reading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ay-primary, #1B4332), #C9A227);
  transition: width .12s linear;
}
@media (prefers-reduced-motion: reduce) {
  .ay-reading-progress-bar { transition: none; }
}

/* ---------- 1. zebra section backgrounds ---------- */
.ay-bg-1 { background: var(--ay-surface, #fff); }
.ay-bg-2 { background: var(--ay-cream, #FAF7F0); }
.ay-bg-3 { background: rgba(27,67,50,.045); }

/* ---------- 3. section-number watermark ---------- */
.ay-section-watermark {
  display: block;
  font-family: var(--ay-font-display, 'Fraunces', serif);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  color: var(--ay-primary, #1B4332);
  opacity: .08;
  margin-bottom: -8px;
  user-select: none;
}
@media (min-width: 768px) {
  .ay-section-watermark { font-size: 72px; margin-bottom: -18px; }
}

/* ---------- 12. gradient typography on headings ---------- */
.ay-section h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  background: linear-gradient(90deg, var(--ay-primary, #1B4332), #2f7a52 60%, #C9A227);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ay-section h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--ay-primary, #1B4332);
  transition: width .6s ease .1s;
}
.ay-section.ay-reveal.in-view h2::after { width: 56px; }
@media (prefers-reduced-motion: reduce) {
  .ay-section h2::after { transition: none; width: 56px; }
}

/* ---------- 7. staggered card reveal ---------- */
.ay-section { opacity: 0; transform: translateY(14px); transition: opacity .5s cubic-bezier(.16,1,.3,1), transform .5s cubic-bezier(.16,1,.3,1); }
.ay-section.in-view { opacity: 1; transform: translateY(0); }
.ay-herb-grid .ay-herb-card,
.ay-herbs-glossary-grid .ay-herbs-glossary-card,
.ay-herbs-dosha-row .ay-herbs-dosha-tile {
  opacity: 0; transform: translateY(10px);
  transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .45s cubic-bezier(.16,1,.3,1);
}
.in-view .ay-herb-grid .ay-herb-card:nth-child(1) { transition-delay: .04s; }
.in-view .ay-herb-grid .ay-herb-card:nth-child(2) { transition-delay: .1s; }
.in-view .ay-herb-grid .ay-herb-card:nth-child(3) { transition-delay: .16s; }
.in-view .ay-herb-grid .ay-herb-card:nth-child(4) { transition-delay: .22s; }
.in-view .ay-herb-card,
.in-view .ay-herbs-glossary-card,
.in-view .ay-herbs-dosha-tile { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .ay-section, .ay-herb-card, .ay-herbs-glossary-card, .ay-herbs-dosha-tile { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ---------- 9. botanical line-art SVG background accents ---------- */
.ay-herbs-narrow { position: relative; }
#philosophy .ay-wrap::before,
#texts .ay-wrap::before {
  content: '';
  position: absolute;
  top: 10px; right: -10px;
  width: 120px; height: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50 5 C30 25 20 55 50 95 C80 55 70 25 50 5Z' fill='none' stroke='%231B4332' stroke-width='1.2' opacity='0.12'/%3E%3Cpath d='M50 15 L50 90' stroke='%231B4332' stroke-width='1' opacity='0.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  display: none;
}
@media (min-width: 1024px) {
  #philosophy .ay-wrap::before, #texts .ay-wrap::before { display: block; }
}

/* ---------- 16. ornamental section dividers ---------- */
.ay-section + .ay-section { position: relative; }
.ay-section + .ay-section::before {
  content: '\2766';
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: var(--ay-primary, #1B4332);
  opacity: .25;
  background: inherit;
  padding: 0 10px;
}
.ay-section.ay-bg-1 + .ay-section.ay-bg-2::before,
.ay-section.ay-bg-3 + .ay-section.ay-bg-2::before { background: var(--ay-cream, #FAF7F0); }
.ay-section.ay-bg-2 + .ay-section.ay-bg-1::before,
.ay-section.ay-bg-3 + .ay-section.ay-bg-1::before { background: var(--ay-surface, #fff); }
.ay-section.ay-bg-1 + .ay-section.ay-bg-3::before,
.ay-section.ay-bg-2 + .ay-section.ay-bg-3::before { background: rgba(27,67,50,.045); }

/* ---------- 11. grain/noise texture overlay ---------- */
body.ay-body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Hero ---------- */
.ay-herbs-hero {
  padding: 32px 0 28px;
  text-align: left;
  border-bottom: 1px solid rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}
/* 13. ambient drifting botanical blobs */
.ay-herbs-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 70%;
  padding-bottom: 70%;
  background: radial-gradient(circle, rgba(27,67,50,.10), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: ayHerbsBlobDrift 14s ease-in-out infinite alternate;
}
.ay-herbs-hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -10%;
  width: 50%;
  padding-bottom: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.08), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: ayHerbsBlobDrift 18s ease-in-out infinite alternate-reverse;
}
@keyframes ayHerbsBlobDrift {
  from { transform: translate(0,0) scale(1); }
  to { transform: translate(-16px, 12px) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .ay-herbs-hero::before, .ay-herbs-hero::after { animation: none; }
}
.ay-herbs-hero .ay-wrap { position: relative; z-index: 1; }
.ay-herbs-hero .ay-breadcrumb, .ay-herbs-hero .ay-eyebrow, .ay-herbs-hero h1, .ay-herbs-hero .lead, .ay-herbs-hero .ay-hero-ctas {
  animation: ayHerbsHeroIn .6s ease both;
}
.ay-herbs-hero .ay-breadcrumb { animation-delay: 0s; }
.ay-herbs-hero .ay-eyebrow { animation-delay: .08s; }
.ay-herbs-hero h1 { animation-delay: .16s; }
.ay-herbs-hero .lead { animation-delay: .24s; }
.ay-herbs-hero .ay-hero-ctas { animation-delay: .32s; }
@keyframes ayHerbsHeroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .ay-herbs-hero .ay-breadcrumb, .ay-herbs-hero .ay-eyebrow, .ay-herbs-hero h1, .ay-herbs-hero .lead, .ay-herbs-hero .ay-hero-ctas { animation: none; }
}
.ay-herbs-hero h1 { font-family: var(--ay-font-display, 'Fraunces', serif); font-size: 28px; margin: 6px 0 10px; }
@media (min-width: 768px) { .ay-herbs-hero h1 { font-size: 40px; } }
@media (min-width: 1280px) { .ay-herbs-hero h1 { font-size: 46px; } }

/* ---------- Quicknav: 4. sliding underline + scroll-shrink ---------- */
.ay-herbs-quicknav {
  position: sticky;
  top: 3px;
  z-index: 30;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 16px;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: padding .25s cubic-bezier(.16,1,.3,1);
  scrollbar-width: none;
}
.ay-herbs-quicknav::-webkit-scrollbar { display: none; }
.ay-herbs-quicknav.is-scrolled { padding: 6px 16px; }
.ay-herbs-quicknav a {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--ay-text-soft, #4a5a4f);
  text-decoration: none;
  padding: 6px 10px;
  white-space: nowrap;
  position: relative;
}
.ay-herbs-quicknav a.active { color: var(--ay-primary, #1B4332); }
.ay-quicknav-underline {
  position: absolute;
  bottom: 0;
  height: 2px;
  background: var(--ay-primary, #1B4332);
  transition: left .3s cubic-bezier(.65,0,.35,1), width .3s cubic-bezier(.65,0,.35,1);
}
@media (prefers-reduced-motion: reduce) { .ay-quicknav-underline { transition: none; } }

/* floating progress pill */
.ay-herbs-progress-pill {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  background: var(--ay-primary, #1B4332);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  display: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
@media (min-width: 1024px) { .ay-herbs-progress-pill { display: block; } }
.ay-herbs-progress-pill i { opacity: .6; font-style: normal; margin-left: 2px; }

/* ---------- Toolbar (search + chips): 10. glassmorphism ---------- */
.ay-herbs-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: 0 8px 30px rgba(27,67,50,.08);
}
@media (min-width: 768px) { .ay-herbs-toolbar { flex-direction: row; align-items: center; justify-content: space-between; } }
.ay-herbs-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ay-border, #e2e8e4); border-radius: 999px; padding: 8px 14px; flex: 0 0 auto; }
.ay-herbs-search svg { color: var(--ay-text-soft, #4a5a4f); flex-shrink: 0; }
.ay-herbs-search input { border: none; outline: none; font-size: 14px; width: 100%; background: transparent; }
@media (min-width: 768px) { .ay-herbs-search { width: 280px; } }
.ay-herbs-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.ay-herbs-chip {
  border: 1px solid var(--ay-border, #e2e8e4);
  background: #fff;
  color: var(--ay-text-soft, #4a5a4f);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s cubic-bezier(.16,1,.3,1), color .25s cubic-bezier(.16,1,.3,1), transform .2s cubic-bezier(.16,1,.3,1);
}
.ay-herbs-chip:hover { transform: translateY(-1px); }
.ay-herbs-chip.is-active { background: var(--ay-primary, #1B4332); color: #fff; border-color: var(--ay-primary, #1B4332); }
.ay-herbs-toolbar-note { font-size: 12px; color: var(--ay-text-soft, #4a5a4f); opacity: .8; margin-top: 8px; }

/* ---------- Trust row ---------- */
.ay-herbs-trust-row { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 768px) { .ay-herbs-trust-row { grid-template-columns: repeat(4, 1fr); } }
.ay-herbs-trust-item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--ay-border, #e2e8e4);
  font-size: 13.5px; font-weight: 600;
  position: relative; overflow: hidden;
}
.ay-herbs-trust-icon { font-size: 20px; }
/* 18. cursor-spotlight on trust items too */
.ay-herbs-trust-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(180px circle at var(--ay-spot-x,50%) var(--ay-spot-y,50%), rgba(27,67,50,.08), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.ay-herbs-trust-item:hover::before { opacity: 1; }

/* ---------- Herb grid: reuses sitewide .ay-herb-grid/.ay-herb-card, extend with premium touches ---------- */
.ay-herb-card {
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1);
}
/* 8. hover-lift + 18. cursor-spotlight */
.ay-herb-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(27,67,50,.14); }
.ay-herb-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(220px circle at var(--ay-spot-x,50%) var(--ay-spot-y,50%), rgba(27,67,50,.07), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.ay-herb-card:hover::before { opacity: 1; }
/* 14. leaf-icon micro-bounce */
.ay-herb-card .ay-herb-icon { display: inline-block; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.ay-herb-card:hover .ay-herb-icon { transform: scale(1.15) rotate(-6deg); }
.ay-herb-detail-toggle {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--ay-primary, #1B4332);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
}
.ay-herb-detail-toggle .ay-accordion-icon svg { transition: transform .25s ease; }

/* ---------- Herb detail props grid ---------- */
.ay-herb-props { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; font-size: 13px; }
@media (min-width: 768px) { .ay-herb-props { grid-template-columns: 1fr 1fr; } }
.ay-herb-props span { padding: 6px 10px; background: rgba(27,67,50,.05); border-radius: 8px; }

/* ---------- Placeholder shells (honesty pattern, same as About page) ---------- */
.ay-herbs-placeholder-section { position: relative; }
.ay-herbs-draft-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #a35b00;
  background: #fff3e0;
  border: 1px solid #f0d9ad;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.ay-herbs-placeholder-box {
  border: 1px dashed var(--ay-border, #cfd9d3);
  border-radius: 12px;
  padding: 16px;
  background: rgba(0,0,0,.015);
}

/* ---------- Dosha tiles ---------- */
.ay-herbs-dosha-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 14px; }
@media (min-width: 768px) { .ay-herbs-dosha-row { grid-template-columns: repeat(3, 1fr); } }
.ay-herbs-dosha-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--ay-border, #e2e8e4);
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s cubic-bezier(.16,1,.3,1);
}
.ay-herbs-dosha-tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(27,67,50,.14); }
.ay-herbs-dosha-tile::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(200px circle at var(--ay-spot-x,50%) var(--ay-spot-y,50%), rgba(27,67,50,.08), transparent 60%);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.ay-herbs-dosha-tile:hover::before { opacity: 1; }
.ay-herbs-dosha-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.ay-herbs-dosha-tile h4 { margin: 0 0 4px; font-family: var(--ay-font-display, 'Fraunces', serif); }
.ay-herbs-inline-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--ay-primary, #1B4332); text-decoration: none; }
.ay-herbs-inline-link:hover { text-decoration: underline; }

/* ---------- Glossary grid ---------- */
.ay-herbs-glossary-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
@media (min-width: 430px) { .ay-herbs-glossary-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ay-herbs-glossary-grid { grid-template-columns: repeat(5, 1fr); } }
.ay-herbs-glossary-card {
  padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--ay-border, #e2e8e4);
  position: relative; overflow: hidden;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.ay-herbs-glossary-card:hover { transform: translateY(-3px); }
.ay-herbs-glossary-card h4 { font-family: var(--ay-font-display, 'Fraunces', serif); color: var(--ay-primary, #1B4332); margin: 0 0 6px; }
.ay-herbs-glossary-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(180px circle at var(--ay-spot-x,50%) var(--ay-spot-y,50%), rgba(27,67,50,.07), transparent 60%);
  opacity: 0; transition: opacity .25s ease; pointer-events: none;
}
.ay-herbs-glossary-card:hover::before { opacity: 1; }

/* ---------- Category cross-links ---------- */
.ay-herbs-cat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.ay-herbs-cat-link {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--ay-border, #e2e8e4);
  color: var(--ay-primary, #1B4332); font-weight: 700; text-decoration: none;
  transition: background .25s ease, transform .2s ease;
}
.ay-herbs-cat-link:hover { background: var(--ay-primary, #1B4332); color: #fff; transform: translateY(-2px); }

/* ---------- Quiz CTA + Contact CTA banners ---------- */
.ay-herbs-quiz-cta, .ay-herbs-contact-cta { text-align: center; }
.ay-herbs-quiz-cta .ay-btn, .ay-herbs-contact-cta .ay-btn { margin-top: 12px; }
/* 15. WhatsApp CTA pulse glow, reused motif */
.ay-herbs-contact-cta .ay-btn-primary { position: relative; }
.ay-herbs-contact-cta .ay-btn-primary::after {
  content: '';
  position: absolute; inset: -4px;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37,211,102,.4);
  animation: ayHerbsPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes ayHerbsPulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.35); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@media (prefers-reduced-motion: reduce) { .ay-herbs-contact-cta .ay-btn-primary::after { animation: none; } }

/* ---------- 19. button ripple micro-interaction ---------- */
.ay-btn { position: relative; overflow: hidden; }
.ay-btn-ripple {
  position: absolute;
  width: 10px; height: 10px;
  background: rgba(255,255,255,.55);
  border-radius: 50%;
  transform: translate(-50%,-50%) scale(0);
  animation: ayHerbsRipple .65s cubic-bezier(.16,1,.3,1) forwards;
  pointer-events: none;
}
@keyframes ayHerbsRipple { to { transform: translate(-50%,-50%) scale(18); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ay-btn-ripple { display: none; } }

/* ---------- 17. premium easing sitewide on this page ---------- */
.ay-herbs-hero, .ay-section, .ay-herb-card, .ay-herbs-dosha-tile, .ay-herbs-glossary-card,
.ay-herbs-cat-link, .ay-herbs-chip, .ay-btn { transition-timing-function: cubic-bezier(.16,1,.3,1); }

/* ---------- FAQ search box (reuses sitewide .ay-accordion*) ---------- */
.ay-accordion-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--ay-border, #e2e8e4);
  border-radius: 999px; padding: 8px 14px; margin: 14px 0;
}
.ay-accordion-search svg { color: var(--ay-text-soft, #4a5a4f); flex-shrink: 0; }
.ay-accordion-search input { border: none; outline: none; font-size: 14px; width: 100%; background: transparent; }
#ayHerbsFaqAccordion .ay-accordion-icon svg,
#ayHerbDetailAccordion .ay-accordion-icon svg,
.ay-herb-detail-toggle .ay-accordion-icon svg { transition: transform .25s ease; }
#ayHerbsFaqAccordion .ay-accordion-item.open .ay-accordion-icon svg,
#ayHerbDetailAccordion .ay-accordion-item.open .ay-accordion-icon svg,
#ayHerbDetailAccordion .ay-accordion-trigger[aria-expanded="true"] .ay-accordion-icon svg { transform: rotate(180deg); }

/* ---------- 20. full dark-mode coverage ---------- */
html[data-ay-theme="dark"] .ay-herbs-quicknav { background: rgba(20,28,22,.85); border-color: rgba(255,255,255,.08); }
html[data-ay-theme="dark"] .ay-herbs-toolbar { background: rgba(30,40,32,.55); border-color: rgba(255,255,255,.1); }
html[data-ay-theme="dark"] .ay-herbs-search,
html[data-ay-theme="dark"] .ay-accordion-search,
html[data-ay-theme="dark"] .ay-herbs-trust-item,
html[data-ay-theme="dark"] .ay-herbs-dosha-tile,
html[data-ay-theme="dark"] .ay-herbs-glossary-card,
html[data-ay-theme="dark"] .ay-herbs-cat-link,
html[data-ay-theme="dark"] .ay-herbs-chip { background: rgba(30,40,32,.7); border-color: rgba(255,255,255,.1); color: #e8efe9; }
html[data-ay-theme="dark"] .ay-herbs-chip.is-active { background: var(--ay-primary, #1B4332); color: #fff; }
html[data-ay-theme="dark"] .ay-herb-props span { background: rgba(255,255,255,.06); }
html[data-ay-theme="dark"] .ay-herbs-placeholder-box { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.02); }
html[data-ay-theme="dark"] .ay-bg-1 { background: #14201a; }
html[data-ay-theme="dark"] .ay-bg-2 { background: #101a15; }
html[data-ay-theme="dark"] .ay-bg-3 { background: rgba(255,255,255,.02); }
html[data-ay-theme="dark"] .ay-section h2 { background: linear-gradient(90deg, #7fd8a6, #a8e6b8 60%, #e6c65c); -webkit-background-clip: text; background-clip: text; }
html[data-ay-theme="dark"] body.ay-body::after { opacity: .04; }

/* ---------- Narrow-content wrap helper ---------- */
.ay-herbs-narrow .ay-wrap > *:not(.ay-section-watermark) { max-width: 760px; }

/* ---------- "View All" collapse: herb grid (~2 rows) + details list (first 2) ---------- */
.ay-herb-grid-wrap { position: relative; }
.ay-herb-grid.is-collapsed { max-height: 640px; overflow: hidden; }
.ay-herb-grid-fade {
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 110px;
  background: linear-gradient(to bottom, transparent, var(--ay-surface, #fff) 82%);
  pointer-events: none;
}
.ay-herb-grid.is-collapsed + .ay-herb-grid-fade { display: block; }
html[data-ay-theme="dark"] .ay-herb-grid-fade { background: linear-gradient(to bottom, transparent, #14201a 82%); }

.ay-herb-detail-extra { display: none; }
#ayHerbDetailAccordion.ay-details-expanded .ay-herb-detail-extra { display: block; }

.ay-herbs-viewall-row { text-align: center; margin-top: 18px; }
.ay-herbs-viewall-btn { font-weight: 700; }
.ay-herbs-viewall-btn .ay-herbs-viewall-icon { display: inline-block; margin-left: 6px; transition: transform .25s ease; }
.ay-herbs-viewall-btn.is-expanded .ay-herbs-viewall-icon { transform: rotate(180deg); }
