.herb-detail-page {
  --bg: #f4f8f5;
  --text: #1c2f27;
  --muted: #5a7267;
  --primary: #1f6b52;
  --primary-2: #2f8c69;
  --line: #d5e7de;
  --card: #ffffff;
  --soft: #eef8f3;
  --shadow: 0 14px 30px rgba(22, 67, 50, 0.12);

  color: var(--text);
  background: linear-gradient(180deg, #f8fcf9 0%, var(--bg) 100%);
}

.herb-detail-page * { box-sizing: border-box; }
.herb-detail-container { width: min(1120px, 92vw); margin: 0 auto; }
.herb-detail-section { padding: 52px 0; }
.herb-detail-soft { background: rgba(255, 255, 255, 0.72); }

.herb-detail-hero {
  padding: 48px 0 34px;
  background:
    radial-gradient(circle at top right, rgba(75, 172, 130, 0.18), transparent 34%),
    linear-gradient(135deg, #e7f6ef 0%, #d6efe3 100%);
  border-bottom: 1px solid rgba(31, 107, 82, 0.08);
}

.herb-detail-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: stretch; }
.herb-detail-hero-main,
.herb-detail-safety-card,
.herb-detail-field-card,
.herb-detail-nav-card,
.herb-detail-fallback-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.herb-detail-hero-main { padding: 30px; }
.herb-detail-safety-card { padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.herb-detail-kicker,
.herb-detail-section-head p { margin: 0 0 10px; color: var(--primary); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.herb-detail-hero h1 { margin: 0; font-size: clamp(2.1rem, 4vw, 3.25rem); line-height: 1.08; color: #164734; }
.herb-detail-card-list a,
.herb-detail-field-content a {
  color: var(--primary);
  font-weight: 700;
}
.herb-detail-meta-list { display: grid; gap: 9px; margin-top: 16px; max-width: 820px; }
.herb-detail-meta-list div { display: flex; gap: 8px; color: #2d5e4b; line-height: 1.65; }
.herb-detail-meta-list strong { flex: 0 0 5.2em; color: #173f31; font-weight: 900; text-align: justify; text-align-last: justify; }
.herb-detail-meta-list span { min-width: 0; flex: 1; }
.herb-detail-meta-wide { align-items: flex-start; }
.herb-detail-lead { max-width: 780px; margin: 14px 0 0; color: #2f5f4d; line-height: 1.85; font-size: 1.03rem; }
.herb-detail-safety-card strong { color: var(--primary); font-size: 1.15rem; }
.herb-detail-safety-card p { margin: 12px 0 0; color: var(--muted); line-height: 1.78; }

.herb-detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.herb-detail-btn,
.herb-detail-nav-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 800;
}
.herb-detail-btn-primary,
.herb-detail-nav-card a { color: #ffffff !important; background: linear-gradient(120deg, #1b5f49, #2f8c69); box-shadow: 0 12px 20px rgba(31, 107, 82, 0.18); }
.herb-detail-btn-primary:hover,
.herb-detail-nav-card a:hover { color: #ffffff !important; background: linear-gradient(120deg, #164734, #28795d); }
.herb-detail-btn-secondary { color: #1b5f49 !important; background: #ffffff; border: 1px solid #73c3a3; }
.herb-detail-btn-secondary:hover { color: #164734 !important; background: #eef8f3; }

.herb-detail-section-head { margin-bottom: 22px; }
.herb-detail-section-head h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2.15rem); line-height: 1.18; color: #173f31; }
.herb-detail-core-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.herb-detail-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.herb-detail-card-list { display: grid; gap: 16px; }
.herb-detail-field-card { padding: 22px; }
.herb-detail-field-card h3 { margin: 0 0 12px; color: var(--primary); font-size: 1.15rem; }
.herb-detail-field-content { color: var(--text); line-height: 1.85; }
.herb-detail-field-content p { margin: 0 0 12px; }
.herb-detail-field-content p:last-child { margin-bottom: 0; }
.herb-detail-field-content hr { display: none; }
.herb-detail-field-content strong { color: #173f31; font-weight: 900; }
.herb-detail-field-content a:hover { color: var(--primary-2); }
.herb-detail-caution-fallback { background: #fffdf6; border-color: #eadfac; }

.herb-detail-bottom-nav { padding-top: 30px; }
.herb-detail-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.herb-detail-nav-card { padding: 24px; }
.herb-detail-nav-card h2 { margin: 0; color: #173f31; font-size: 1.35rem; }
.herb-detail-nav-card p { margin: 10px 0 18px; color: var(--muted); line-height: 1.75; }
.herb-detail-fallback-content { padding: 28px; line-height: 1.85; }

@media (max-width: 1024px) {
  .herb-detail-hero-grid,
  .herb-detail-core-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .herb-detail-section { padding: 40px 0; }
  .herb-detail-hero { padding: 40px 0 28px; }
  .herb-detail-hero-grid,
  .herb-detail-core-grid,
  .herb-detail-two-col,
  .herb-detail-link-grid { grid-template-columns: 1fr; }
  .herb-detail-hero-main,
  .herb-detail-safety-card,
  .herb-detail-field-card,
  .herb-detail-nav-card,
  .herb-detail-fallback-content { padding: 20px; }
  .herb-detail-actions { flex-direction: column; }
  .herb-detail-btn { width: 100%; }
}
