:root {
  --nhl-green: #2d5a27;
  --nhl-green-dark: #1a3a17;
  --nhl-green-soft: #edf4ea;
  --nhl-green-line: #c8e6c4;
  --nhl-cream: #fafaf8;
  --nhl-card: #ffffff;
  --nhl-text: #222222;
  --nhl-muted: #5a6458;
  --nhl-border: #d9e4d5;
  --nhl-shadow: 0 14px 34px rgba(45, 90, 39, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--nhl-text);
  background: var(--nhl-cream);
}

a {
  color: var(--nhl-green);
}

a:hover {
  color: var(--nhl-green-dark);
}

.site-header {
  background: var(--nhl-green);
  color: #ffffff;
}

.site-header__inner,
.site-header__breadcrumbs {
  max-width: 960px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.site-brand {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

.site-nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: auto;
  min-width: 2.75rem;
  height: auto;
  margin-left: auto;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 0.85rem;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.site-nav-toggle:hover,
.site-nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.52);
}

.site-nav-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.site-nav-toggle__bars {
  display: grid;
  gap: 0.28rem;
}

.site-nav-toggle__bars span {
  display: block;
  width: 1.25rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-nav-toggle.is-open .site-nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-nav-toggle.is-open .site-nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-nav-toggle.is-open .site-nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.site-nav-toggle__label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.site-nav {
  width: 100%;
}

.site-nav__list,
.site-nav__sublist {
  list-style: none;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-nav__link,
.site-nav__sublink {
  display: inline-flex;
  color: #d9ecd5;
  text-decoration: none;
}

.site-nav__link {
  font-weight: 600;
}

.site-nav__link.is-active,
.site-nav__sublink.is-active {
  color: #ffffff;
}

.site-nav__link:hover,
.site-nav__sublink:hover {
  color: #ffffff;
}

.site-nav__item--has-children {
  display: grid;
  gap: 0.35rem;
}

.site-nav__sublist {
  display: grid;
  gap: 0.35rem;
  padding-left: 0.9rem;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
}

.site-nav__sublink {
  font-size: 0.94rem;
}

.site-nav__sublist-footer {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.site-nav__sublink--all {
  font-style: italic;
  opacity: 0.85;
}

.site-header__breadcrumbs {
  padding-top: 0;
  padding-bottom: 0.75rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumb li,
.breadcrumb a,
.breadcrumb span {
  color: #d9ecd5;
  font-size: 0.9rem;
}

.breadcrumb li + li::before {
  content: ">";
  margin-right: 0.5rem;
  opacity: 0.7;
}

#main-content {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

#main-content:has(.herb-index-hero) {
  max-width: 1400px;
}

.notice {
  padding: 0.75rem 1rem;
  border-left: 4px solid;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.notice--stub {
  border-color: #aaaaaa;
  background: #f5f5f5;
}

.notice--amber {
  border-color: #e6a817;
  background: #fffbf0;
}

.notice--red {
  border-color: #c0392b;
  background: #fff5f5;
}

.monograph__header {
  margin-bottom: 1.5rem;
}

.monograph__illustration {
  margin: 1rem 0 0;
}

.monograph__intro {
  margin-top: 1rem;
}

.monograph__description {
  color: var(--nhl-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.monograph__also-known {
  margin-top: 0.875rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--nhl-border);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--nhl-green-dark);
  line-height: 1.6;
}

.monograph__also-known__item {
  display: block;
}

/* Also Known As section */
.monograph__name-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.monograph__name-tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  background: var(--nhl-green-soft);
  border: 1px solid var(--nhl-green-line);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--nhl-green-dark);
  font-weight: 500;
}

.monograph__aliases-tcm {
  font-size: 0.8125rem;
  color: var(--nhl-muted);
  margin-top: 0.25rem;
}

/* FAQ section */
.monograph__faq__item {
  border-bottom: 1px solid var(--nhl-border);
}

.monograph__faq__item:last-child {
  border-bottom: none;
}

.monograph__faq__item summary {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.65rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  list-style: none;
  user-select: none;
}

.monograph__faq__item summary::-webkit-details-marker {
  display: none;
}

.monograph__faq__item summary::before {
  content: '+';
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--nhl-green);
  width: 1rem;
  text-align: center;
}

.monograph__faq__item[open] summary::before {
  content: '-';
}

.monograph__faq__answer {
  padding: 0.25rem 0 0.75rem 1.6rem;
  font-size: 0.9rem;
  color: var(--nhl-muted);
  line-height: 1.75;
}

.monograph__illustration img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--nhl-border);
  box-shadow: var(--nhl-shadow);
}

.monograph__illustration-credit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--nhl-muted);
}

.monograph__illustration-credit a {
  color: var(--nhl-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.monograph__print-link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--nhl-border);
  background: var(--nhl-card);
  color: var(--nhl-green) !important;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.monograph__print-link:hover {
  background: var(--nhl-green-soft);
  border-color: var(--nhl-green-line);
}

/* ── Illustration … opens full image in new tab ── */
.illustration-link {
  display: block;
  border-radius: 12px;
  cursor: zoom-in;
}

.illustration-link:focus-visible {
  outline: 2px solid var(--nhl-green);
  outline-offset: 3px;
}

.monograph__name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--nhl-green-dark);
}

.monograph__names {
  margin-top: 0.5rem;
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.25rem 0.75rem;
  font-size: 0.9rem;
}

.monograph__names dt,
.monograph dt {
  font-weight: 600;
  color: #555555;
}

.monograph section {
  margin-bottom: 1.25rem;
  padding: 1.25rem;
  background: var(--nhl-card);
  border: 1px solid var(--nhl-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(45, 90, 39, 0.03);
}

.monograph h2 {
  font-size: 1.25rem;
  color: var(--nhl-green);
  border-bottom: 2px solid var(--nhl-green-line);
  padding-bottom: 0.25rem;
  margin-bottom: 0.75rem;
}

.monograph h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0.75rem 0 0.4rem;
}

.monograph ul {
  padding-left: 1.5rem;
}

.monograph li + li {
  margin-top: 0.35rem;
}

.monograph dl {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 0.3rem 0.75rem;
}

.severity,
.evidence,
.strength {
  font-size: 0.82rem;
  color: #666666;
  margin-left: 0.35rem;
}

.api-ref {
  font-size: 0.72rem;
  font-family: monospace;
  color: #999999;
  border: 1px solid #cccccc;
  border-radius: 3px;
  padding: 0 0.3rem;
  margin-left: 0.5rem;
  text-decoration: none;
  vertical-align: middle;
}
.api-ref:hover {
  color: #555555;
  border-color: #999999;
}

.severity--high,
.severity--major {
  color: #a23d2f;
  font-weight: 600;
}

.severity--moderate,
.evidence--research {
  color: #8b6510;
}

.evidence--clinical {
  color: var(--nhl-green);
  font-weight: 600;
}

.error-page {
  text-align: center;
  padding: 3rem 1rem;
}

.error-page h1 {
  font-size: 5rem;
  color: #cccccc;
}

.error-page p {
  margin: 1rem 0;
  color: #666666;
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.8rem;
  color: #888888;
  border-top: 1px solid #e0e0e0;
  margin-top: 3rem;
}

.home-hero {
  text-align: center;
  padding: 2.5rem 0 1.5rem;
}

.home-hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--nhl-green-dark);
  margin-bottom: 0.5rem;
}

.hero-sub {
  color: #555555;
  margin-bottom: 1.25rem;
}

.herb-search {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.herb-search input[type="search"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid #aaaaaa;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  width: 280px;
}

.herb-search input[type="search"]:focus,
.herb-query__input:focus {
  outline: 2px solid var(--nhl-green);
  border-color: var(--nhl-green);
}

.herb-search button,
.herb-query__submit {
  padding: 0.55rem 1.2rem;
  background: var(--nhl-green);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
}

.herb-search button:hover,
.herb-query__submit:hover {
  background: var(--nhl-green-dark);
}

.herb-index {
  margin-top: 2rem;
}

.herb-index h2 {
  font-size: 1.35rem;
  color: var(--nhl-green-dark);
  border-bottom: 2px solid var(--nhl-green-line);
  padding-bottom: 0.35rem;
  margin-bottom: 1rem;
}

.herb-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.4rem 1.5rem;
}

.herb-list__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eeeeee;
  font-size: 0.95rem;
}

.herb-list__thumb {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--nhl-border);
}

.herb-list__text {
  min-width: 0;
}

.herb-list__item a {
  color: var(--nhl-green);
  text-decoration: none;
  font-weight: 600;
}

.herb-list__item a:hover {
  text-decoration: underline;
}

.herb-list__pinyin {
  color: #666666;
  margin-left: 0.4rem;
}

.herb-list__chinese {
  color: #888888;
  margin-left: 0.25rem;
  font-size: 0.9rem;
}

.no-herbs {
  color: #888888;
  font-style: italic;
  text-align: center;
  margin-top: 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.herb-query {
  background: #f0f7f0;
  border: 1px solid var(--nhl-green-line);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.herb-query__title {
  font-size: 1.15rem;
  color: var(--nhl-green-dark);
  margin-bottom: 0.35rem;
}

.herb-query__intro {
  font-size: 0.9rem;
  color: #555555;
  margin-bottom: 1rem;
}

.herb-query__row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  flex-wrap: wrap;
}

.herb-query__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  width: 100%;
}

.herb-query__input {
  flex: 1 1 260px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #aaaaaa;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  min-width: 0;
}

.herb-query__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.herb-query__output {
  margin-top: 1.25rem;
}

.herb-query__loading {
  color: #555555;
  font-style: italic;
}

.herb-query__error {
  color: #c0392b;
}

.herb-query__answer p {
  margin-bottom: 0.75rem;
}

.herb-query__answer a,
.herb-query__herbs-used a {
  color: var(--nhl-green);
  font-weight: 600;
}

.herb-query__disclaimer {
  font-size: 0.82rem;
  color: #777777;
  margin-top: 0.75rem;
  font-style: italic;
}

.herb-query__herbs-used {
  font-size: 0.82rem;
  color: #555555;
  margin-top: 0.5rem;
}

.herb-query__note {
  font-size: 0.8rem;
  color: #888888;
  margin-top: 1rem;
}

.system-page {
  display: grid;
  gap: 1.25rem;
}

.system-hero {
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid #d4e4cf;
  background: linear-gradient(180deg, #f4f8f1 0%, #eaf3e7 100%);
  box-shadow: var(--nhl-shadow);
}

.system-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nhl-green);
  margin-bottom: 0.5rem;
}

.system-hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.15;
  color: var(--nhl-green-dark);
}

.system-hero__subtitle {
  margin-top: 0.9rem;
  max-width: 48rem;
  color: var(--nhl-muted);
  font-size: 1.02rem;
}

.system-hero__actions,
.cta-panel__actions,
.practice-cta__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.system-hero__actions {
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--nhl-green);
  color: #ffffff;
}

.button--primary:hover {
  color: #ffffff;
  background: var(--nhl-green-dark);
}

.button--secondary {
  background: #ffffff;
  color: var(--nhl-green-dark);
  border-color: #c5d7c0;
}

.button--secondary:hover {
  background: #f5f8f3;
  color: var(--nhl-green-dark);
}

.system-section,
.cta-panel,
.practice-cta,
.disclaimer-block {
  background: var(--nhl-card);
  border: 1px solid var(--nhl-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(45, 90, 39, 0.04);
}

.system-section h2,
.cta-panel h2,
.practice-cta h2,
.disclaimer-block h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--nhl-green-dark);
  margin-bottom: 0.75rem;
}

.system-section p + p,
.cta-panel p + p,
.disclaimer-block p + p {
  margin-top: 0.95rem;
}

.section-lead {
  color: var(--nhl-muted);
  margin-bottom: 1rem;
}

.audience-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
}

.audience-list li {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: var(--nhl-green-soft);
  border: 1px solid #d1e0cb;
  color: var(--nhl-green-dark);
  font-size: 0.92rem;
  font-weight: 600;
}

.feature-list {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.8rem;
}

.feature-list strong {
  color: var(--nhl-green-dark);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid #d7e5d3;
  background: linear-gradient(180deg, #fbfcfa 0%, #f4f8f2 100%);
}

.tool-card.is-current {
  border-color: var(--nhl-green);
  box-shadow: inset 0 0 0 1px rgba(45, 90, 39, 0.08);
}

.tool-card__status {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--nhl-green);
}

.tool-card h3 {
  color: var(--nhl-green-dark);
  font-size: 1.08rem;
  line-height: 1.35;
}

.tool-card p {
  color: var(--nhl-muted);
  flex: 1;
}

.tool-card__link {
  font-weight: 700;
  text-decoration: none;
}

.cta-panel {
  background: linear-gradient(180deg, #f9fbf8 0%, #f1f6ef 100%);
}

.cta-panel__actions {
  margin-top: 1rem;
}

.practice-cta {
  background: var(--nhl-green-soft);
}

.practice-cta__links {
  margin-top: 1rem;
}

.practice-cta__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #c8d9c3;
  color: var(--nhl-green-dark);
  text-decoration: none;
  font-weight: 700;
}

.practice-cta__link:hover {
  background: #f5f8f3;
  color: var(--nhl-green-dark);
}

.disclaimer-block {
  background: #f7faf6;
  border-left: 4px solid #bfd2b8;
}

@media (max-width: 759px) {
  .has-js .site-nav-toggle {
    display: inline-flex;
  }

  .has-js .site-nav {
    display: none;
  }

  .has-js .site-nav.is-open {
    display: block;
  }
}

@media (min-width: 760px) {
  .site-nav {
    width: auto;
    margin-left: auto;
  }

  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }

  .site-nav__item--has-children {
    position: relative;
    display: block;
  }

  .site-nav__sublist {
    position: absolute;
    left: 0;
    top: calc(100% + 0.45rem);
    min-width: 14rem;
    padding: 0.8rem;
    background: #ffffff;
    border: 1px solid #d6e2d2;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(18, 34, 16, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    border-left: none;
  }

  .site-nav__sublist--conditions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-width: 34rem;
    column-gap: 1.2rem;
  }

  .site-nav__sublist--conditions .site-nav__sublist-footer {
    grid-column: 1 / -1;
  }

  .site-nav__item--has-children:hover .site-nav__sublist,
  .site-nav__item--has-children:focus-within .site-nav__sublist {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav__link,
  .site-nav__sublink {
    color: #e5f2e1;
  }

  .site-nav__sublink {
    color: var(--nhl-green-dark);
  }

  .site-nav__sublink.is-active {
    color: var(--nhl-green);
  }

  .site-nav__sublink:hover {
    color: var(--nhl-green);
  }

  .site-nav__sublist-footer {
    border-top-color: var(--nhl-border);
  }

  .site-nav-toggle__label {
    display: none;
  }

  .monograph__header--illustrated {
    display: grid;
    grid-template-columns: 1fr 280px;
    grid-template-rows: auto 1fr;
    gap: 1.5rem;
    align-items: start;
  }

  .monograph__header--illustrated .monograph__header-text {
    grid-column: 1;
    grid-row: 1;
  }

  .monograph__header--illustrated .monograph__illustration {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
  }

  .monograph__header--illustrated .monograph__intro {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
    align-self: start;
  }
}

.editorial-page {
  display: grid;
  gap: 1.25rem;
}

.editorial-hero {
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid #d4e4cf;
  background: linear-gradient(180deg, #f6faf3 0%, #eaf3e6 100%);
  box-shadow: var(--nhl-shadow);
}

.editorial-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nhl-green);
  margin-bottom: 0.5rem;
}

.editorial-hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.15;
  color: var(--nhl-green-dark);
}

.editorial-hero__subtitle {
  margin-top: 0.9rem;
  max-width: 48rem;
  color: var(--nhl-muted);
  font-size: 1.02rem;
}

.editorial-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.editorial-tags li {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: var(--nhl-green-soft);
  border: 1px solid #d1e0cb;
  color: var(--nhl-green-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.editorial-section,
.download-gate {
  background: var(--nhl-card);
  border: 1px solid var(--nhl-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(45, 90, 39, 0.04);
}

.editorial-section h2,
.download-gate h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--nhl-green-dark);
  margin-bottom: 0.75rem;
}

.editorial-body p + p,
.editorial-body p + ul,
.editorial-body ul + p,
.editorial-body h2 + p,
.editorial-body h3 + p,
.download-gate p + p {
  margin-top: 0.95rem;
}

.editorial-body h2,
.editorial-body h3 {
  color: var(--nhl-green-dark);
  margin-top: 1.1rem;
  margin-bottom: 0.55rem;
}

.editorial-body ul,
.editorial-link-list,
.content-card__meta {
  padding-left: 1.2rem;
}

.editorial-body li + li,
.editorial-link-list li + li,
.content-card__meta li + li {
  margin-top: 0.35rem;
}

.related-content__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.content-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
  padding: 1.25rem;
  border-radius: 14px;
  border: 1px solid #d7e5d3;
  background: linear-gradient(180deg, #fbfcfa 0%, #f4f8f2 100%);
}

.content-card__thumb-link {
  display: flex;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.content-card__thumb {
  display: block;
  width: auto;
  height: auto;
  max-width: 100px;
  max-height: 100px;
  border-radius: 6px;
  transition: opacity 0.2s ease;
}

.content-card__thumb-link:hover .content-card__thumb {
  opacity: 0.85;
}

.content-card--condition-herb {
  position: relative;
  padding-right: calc(1.25rem + 110px);
}

.content-card--condition-herb .content-card__thumb-link {
  position: absolute;
  bottom: 1.25rem;
  right: 1.25rem;
  margin-bottom: 0;
  justify-content: flex-end;
}

.content-card__eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--nhl-green);
}

.content-card__title {
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--nhl-green-dark);
}

.content-card__title a {
  color: inherit;
  text-decoration: none;
}

.content-card__title a:hover {
  text-decoration: underline;
}

.content-card__excerpt {
  color: var(--nhl-muted);
  flex: 1;
}

.content-card__meta {
  color: #647062;
  font-size: 0.88rem;
}

.content-card__link {
  font-weight: 700;
  text-decoration: none;
}

.cta-panel__audience,
.download-gate__privacy {
  color: var(--nhl-muted);
  font-size: 0.9rem;
}

.download-gate__form {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.download-gate__form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--nhl-green-dark);
}

.download-gate__form input[type="email"] {
  padding: 0.6rem 0.75rem;
  border: 1px solid #aebca9;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.download-gate__form input[type="email"]:focus {
  outline: 2px solid var(--nhl-green);
  border-color: var(--nhl-green);
}

.download-gate__direct-link {
  margin-top: 1rem;
}

.condition-page {
  display: grid;
  gap: 1.25rem;
}

.condition-hero {
  padding: 1.75rem;
  border-radius: 18px;
  border: 1px solid #d4e4cf;
  background: linear-gradient(180deg, #f5f9f2 0%, #eaf3e6 100%);
  box-shadow: var(--nhl-shadow);
}

.condition-hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nhl-green);
  margin-bottom: 0.5rem;
}

.condition-hero h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.15;
  color: var(--nhl-green-dark);
}

.condition-hero__subtitle {
  margin-top: 0.9rem;
  max-width: 48rem;
  color: var(--nhl-muted);
  font-size: 1.02rem;
}

.condition-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--nhl-muted);
  font-size: 0.9rem;
}

.condition-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.condition-section {
  background: var(--nhl-card);
  border: 1px solid var(--nhl-border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(45, 90, 39, 0.04);
}

.condition-section--soft {
  background: #f7faf6;
}

.condition-section h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--nhl-green-dark);
  margin-bottom: 0.75rem;
}

.condition-section p + p,
.condition-section p + ul,
.condition-section ul + p {
  margin-top: 0.95rem;
}

.condition-notes {
  padding-left: 1.2rem;
}

.condition-notes li + li {
  margin-top: 0.5rem;
}

/* ── Herb Index page ─────────────────────────────────────────── */

.herb-index-hero {
  padding-bottom: 0.75rem;
}

.herb-index-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.herb-index-count {
  font-size: 0.9rem;
  color: var(--nhl-muted);
  font-weight: 600;
  flex: 1;
}

.herb-index-clear {
  font-size: 0.82rem;
  color: var(--nhl-green);
  background: none;
  border: 1px solid var(--nhl-green-line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease;
}

.herb-index-clear:hover {
  background: var(--nhl-green-soft);
}

.herb-filters-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--nhl-green-dark);
  background: var(--nhl-green-soft);
  border: 1px solid var(--nhl-green-line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
}

.herb-filters-toggle:hover {
  background: var(--nhl-green-line);
}

.herb-filters-toggle__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--nhl-green);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
}

/* Two-column layout: list on left, filter panel on right */
.herb-index-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.herb-index-main {
  min-width: 0;
}

/* Filter sidebar */
.herb-filters {
  background: var(--nhl-card);
  border: 1px solid var(--nhl-border);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}

.filter-group {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--nhl-border);
}

.filter-group:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.filter-group__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nhl-green-dark);
  margin-bottom: 0.6rem;
  text-align: left;
}

.filter-group__title:hover {
  color: var(--nhl-green);
}

.filter-group__chevron {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.filter-group__title[aria-expanded="false"] .filter-group__chevron {
  transform: rotate(-90deg);
}

.filter-group__body[hidden] {
  display: none;
}

.herb-list__item[hidden] {
  display: none;
}

.filter-group__options {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.88rem;
}

.filter-option input[type="checkbox"] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--nhl-green);
  cursor: pointer;
}

.filter-option__label {
  flex: 1;
  color: var(--nhl-text);
}

.filter-option:hover .filter-option__label {
  color: var(--nhl-green);
}

.filter-option__count {
  font-size: 0.78rem;
  color: var(--nhl-muted);
  min-width: 1.8rem;
  text-align: right;
}

.filter-search {
  width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1px solid #b8cdb5;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--nhl-text);
  background: #f8fbf7;
}

.filter-search:focus {
  outline: 2px solid var(--nhl-green);
  border-color: var(--nhl-green);
  background: #ffffff;
}

.filter-search__hint {
  font-size: 0.75rem;
  color: var(--nhl-muted);
  margin-top: 0.3rem;
}

.filter-search__wrap {
  position: relative;
}

.filter-search__suggestions {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #b8cdb5;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 220px;
  overflow-y: auto;
  z-index: 200;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0;
}

.filter-search__suggestions li {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: var(--nhl-text);
  cursor: pointer;
  line-height: 1.35;
}

.filter-search__suggestions li:hover,
.filter-search__suggestions li[aria-selected="true"] {
  background: #eaf3e8;
  color: var(--nhl-green);
}

.filter-search__suggestions li .suggestion-pinyin {
  font-size: 0.78rem;
  color: var(--nhl-muted);
  margin-left: 0.4rem;
}

.filter-mode-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0 0.75rem;
  border-bottom: 1px solid #dde8db;
  margin-bottom: 0.25rem;
}

.filter-mode-label {
  font-size: 0.78rem;
  color: var(--nhl-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.filter-mode-toggle {
  display: flex;
  border: 1px solid #b8cdb5;
  border-radius: 5px;
  overflow: hidden;
}

.filter-mode-btn {
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-family: inherit;
  background: #f8fbf7;
  color: var(--nhl-muted);
  border: none;
  cursor: pointer;
  line-height: 1.4;
}

.filter-mode-btn + .filter-mode-btn {
  border-left: 1px solid #b8cdb5;
}

.filter-mode-btn.is-active {
  background: var(--nhl-green);
  color: #fff;
}

/* Badges inside the herb list - stacked vertically, right-aligned */
.herb-index-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
}

.herb-temp-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.herb-temp-badge--warm         { background: #fef3e8; color: #c05c00; border: 1px solid #f5cfa0; }
.herb-temp-badge--hot          { background: #fdecea; color: #a02020; border: 1px solid #f5bfbb; }
.herb-temp-badge--slightly-warm{ background: #fff7f0; color: #c07020; border: 1px solid #f5dfc0; }
.herb-temp-badge--neutral      { background: #f2f3f4; color: #5a6458; border: 1px solid #d5d9d5; }
.herb-temp-badge--slightly-cold{ background: #eef6fb; color: #2060a0; border: 1px solid #b8d8f0; }
.herb-temp-badge--cool         { background: #eaf4fb; color: #1a5080; border: 1px solid #a8d0ec; }
.herb-temp-badge--cold         { background: #e4eef8; color: #1a3a6a; border: 1px solid #90b8e0; }

.herb-safety-badge {
  font-size: 0.78rem;
  cursor: default;
}

.herb-safety-badge--amber { color: #c07000; }
.herb-safety-badge--red   { color: #a02020; }

.herb-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}

.herb-status-badge--draft     { background: #e8eefb; color: #2a4aaa; border: 1px solid #b8c8f0; }
.herb-status-badge--reviewed  { background: #e8f6f3; color: #1a6050; border: 1px solid #a8ddd5; }
.herb-status-badge--published { background: var(--nhl-green-soft); color: var(--nhl-green-dark); border: 1px solid var(--nhl-green-line); }

/* Tighter row for the index list */
.herb-index-list .herb-list__item {
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: flex-start;
}

.herb-index-list .herb-list__text {
  flex: 1;
  min-width: 140px;
}

/* In the index list, badges are small right-aligned colored text - not pills */
.herb-index-list .herb-temp-badge,
.herb-index-list .herb-status-badge {
  padding: 0;
  border-radius: 0;
  border: none;
  background: none;
  font-size: 0.67rem;
  font-weight: 400;
}

.herb-index-list .herb-temp-badge--warm          { color: #b05500; }
.herb-index-list .herb-temp-badge--hot           { color: #902020; }
.herb-index-list .herb-temp-badge--slightly-warm { color: #a06020; }
.herb-index-list .herb-temp-badge--neutral       { color: #4a5448; }
.herb-index-list .herb-temp-badge--slightly-cold { color: #1a5090; }
.herb-index-list .herb-temp-badge--cool          { color: #1a4878; }
.herb-index-list .herb-temp-badge--cold          { color: #1a3060; }

.herb-index-list .herb-status-badge--draft       { color: #2a4aaa; }
.herb-index-list .herb-status-badge--reviewed    { color: #1a6050; }
.herb-index-list .herb-status-badge--published   { color: var(--nhl-green-dark); }

.herb-index-list .herb-safety-badge {
  font-size: 0.68rem;
}

/* ── Responsive: desktop shows sidebar, hides toggle ─────── */
@media (min-width: 760px) {
  .herb-index-layout {
    grid-template-columns: 1fr 260px;
  }

  .herb-filters {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--nhl-green-line) transparent;
  }

  .herb-filters-toggle {
    display: none !important;
  }
}

/* ── Responsive: mobile hides sidebar, shows toggle ─────── */
@media (max-width: 759px) {
  .herb-filters-toggle {
    display: inline-flex;
  }

  .herb-filters {
    display: none;
    order: -1;
    margin-bottom: 1rem;
  }

  .herb-filters.is-open {
    display: block;
  }

  .herb-index-layout {
    grid-template-columns: 1fr;
  }

  .herb-index-badges {
    width: 100%;
  }
}
