/*
 * Shared article foundation.
 *
 * This file deliberately contains layout and component geometry only. Article
 * themes remain in each document, loaded after this sheet, so their palettes,
 * illustrations, cards and other editorial treatments can continue to vary.
 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
}

a { color: inherit; }

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 600;
  padding: 16px 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26,46,31,0.98);
  border-bottom: 1px solid rgba(201,168,76,0.18);
}
.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  color: white;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a, .nav-dropdown > span {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 8px 0;
  background: var(--deep);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 18px; }
.nav-cta {
  padding: 8px 18px;
  border-radius: 100px;
  color: var(--deep) !important;
  background: var(--gold);
  font-weight: 700 !important;
}
.lang-toggle { display: flex; gap: 6px; }
.lang-btn {
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  background: transparent;
  color: rgba(255,255,255,.7);
  cursor: pointer;
}
.lang-btn.active {
  color: var(--deep);
  background: var(--gold);
  border-color: var(--gold);
}

/* Hero and medical note */
.disclaimer {
  margin-top: 65px !important;
  padding: 20px 8%;
  background: #f7eee8;
  border-bottom: 1px solid rgba(196,101,74,.15);
}
.disclaimer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.disclaimer-icon { font-size: 1.35rem; flex-shrink: 0; }
.disclaimer p { font-size: .88rem; line-height: 1.65; }
.disclaimer strong { color: var(--terracotta-dark); }
.page-hero {
  padding: 78px 8% 76px;
  color: white;
  background: linear-gradient(145deg, #1a2e1f, #294b38 55%, #355c43);
}

/* Earlier article templates use the shorter hero/section class names. */
.hero {
  color: #fff;
  text-align: center;
}
.section { padding: 72px 24px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255,255,255,.58);
  font-size: .8rem;
}
.breadcrumb a { color: inherit; }
.page-hero h1 {
  max-width: 800px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 5vw, 4rem);
}
.page-hero h1 em { color: #d8c985; font-style: italic; }
.hero-desc {
  max-width: 650px;
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  line-height: 1.8;
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.meta-tag {
  padding: 6px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 100px;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.86);
  font-size: .75rem;
  font-weight: 600;
}

/* Article sections */
.intro-section { max-width: 900px; padding: 68px 8%; }
.intro-section p { margin-bottom: 20px; font-size: 1.03rem; line-height: 1.85; }
.content-section { padding: 72px 8%; }
.content-section.dark { background: var(--deep); color: white; }
.section-header { margin-bottom: 42px; }
.section-label {
  display: block;
  margin-bottom: 10px;
  color: var(--sage);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dark .section-label { color: #c9bb75; }
.section-header h2 {
  color: var(--deep);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}
.dark .section-header h2 { color: white; }
.section-header h2 em { color: #a77f24; font-style: italic; }
.dark .section-header h2 em { color: #d8c985; }

/* Forms and calls to action */
.email-section { padding: 64px 8%; background: var(--cream); }
.email-form { display: flex; }
.email-container { max-width: 720px; margin: 0 auto; text-align: center; }
.email-container h2 {
  margin-bottom: 12px;
  color: var(--deep);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}
.email-container > p { margin-bottom: 28px; color: var(--text-light); }
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.email-input {
  flex: 1;
  min-width: 190px;
  padding: 14px 17px;
  border: 1px solid rgba(74,103,65,.28);
  border-radius: 100px;
  background: white;
  font: inherit;
}
.btn-primary {
  padding: 14px 24px;
  border: 0;
  border-radius: 100px;
  background: var(--gold);
  color: var(--deep);
  font: 700 .9rem 'Plus Jakarta Sans', sans-serif;
  cursor: pointer;
}
.gdpr-row { margin-top: 14px; color: var(--text-light); font-size: .78rem; }
.gdpr-label {
  display: inline-flex;
  gap: 8px;
  align-items: flex-start;
  text-align: left;
}
.cta-section {
  padding: 72px 8%;
  background: var(--deep);
  color: white;
  text-align: center;
}
.cta-section h2 {
  margin-bottom: 14px;
  color: white;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}
.cta-section p {
  max-width: 620px;
  margin: 0 auto 28px;
  color: rgba(255,255,255,.7);
}
.cta-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 100px;
  background: var(--gold);
  color: var(--deep);
  text-decoration: none;
  font-weight: 700;
}
.cta-secondary { display: block; margin-top: 14px; font-size: .84rem; }

/* Related links and footer */
.related-section { padding: 68px 8%; background: #f7f3ed; }
.related-section > h3 {
  margin-bottom: 28px;
  color: var(--deep);
  font-size: 1.8rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 16px;
}
.related-card {
  padding: 22px;
  border: 1px solid rgba(74,103,65,.14);
  border-radius: 16px;
  background: white;
  color: inherit;
  text-decoration: none;
}
.related-icon { display: block; margin-bottom: 10px; font-size: 1.5rem; }
.related-card h4 { margin-bottom: 7px; color: var(--deep); font-size: 1.15rem; }
.related-card p { color: var(--text-light); font-size: .84rem; line-height: 1.6; }
footer {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  padding: 38px 8% 92px;
  background: #102017;
  color: rgba(255,255,255,.65);
  font-size: .8rem;
}
.footer-brand {
  color: white;
  font: 1.2rem 'Cormorant Garamond', serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: inherit; text-decoration: none; }

/* Shared mobile contract; article styles may override theme-specific details. */
@media (max-width: 767px) {
  .nav { min-height: 64px; padding: 13px 20px; }
  .nav-links { display: none; }
  .disclaimer { margin-top: 64px !important; padding: 18px 20px; }
  .page-hero { padding: 54px 20px 48px; }
  .page-hero h1 { font-size: clamp(2rem, 10vw, 2.75rem); }
  .hero-desc { font-size: .96rem; }
  .page-hero-meta { gap: 8px; margin-top: 26px; }
  .meta-tag { font-size: .68rem; }
  .intro-section,
  .content-section,
  .email-section,
  .cta-section,
  .related-section,
  .sources-section {
    padding-left: 20px;
    padding-right: 20px;
  }
  .plant-grid, .pillar-grid, .related-grid { grid-template-columns: 1fr; }
  .compare-table,
  .thm-table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .form-row { flex-direction: column; }
  .email-input, .btn-primary { width: 100%; min-width: 0; }
  footer {
    padding: 34px 20px 96px;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero { padding: 56px 20px 52px; }
  .section { padding: 52px 20px; }
}