/* ============================================================
   PlantMapper — Salad Leaves (Grow Your Own silo)
   Pairs with plantmapper.css + ecosystem.css. Part of the
   "Grow Your Own" family, here a crisp, fresh salad-leaf green
   accent (brighter and more saturated than the muted Herbs
   olive) over the shared greens on a warm cream. Plus the usual
   hub components and the in-body figure component. Does not
   modify any shared stylesheet.
   ============================================================ */

/* ---- crisp salad-leaf green theme ---- */
body.theme-salad {
  --rose:      #5FA53E;   /* crisp fresh salad-leaf green accent    */
  --rose-deep: #3C7327;   /* clear mid leaf-green — text, icons     */
  --rose-soft: #E4F0D6;   /* pale fresh-leaf wash                   */
  --bg-cream:  #F7F2E6;   /* warm cream                             */
  background:
    radial-gradient(1200px 660px at 84% -12%, #e0efce 0%, transparent 58%),
    radial-gradient(980px 560px at -8% 2%, #eaf1da 0%, transparent 56%),
    var(--bg);
}

/* ---- in-body photo figure (lazy-loaded) ---- */
.eco-figure {
  margin: 6px 0 2px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow-1);
}
.eco-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  background: linear-gradient(160deg, var(--green-soft), var(--rose-soft));
}
.eco-figure figcaption {
  font-size: 0.76rem;
  letter-spacing: 0.01em;
  color: var(--muted);
  padding: 8px 13px 9px;
}

/* ---- problem cards (problem + fix) ---- */
.mistakes-grid .mistake-card h3 .x { color: var(--rose); }

/* ---- layout / scheme cards ---- */
.scheme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.scheme {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 21px;
  box-shadow: var(--shadow-1);
}
.scheme h3 {
  margin: 0 0 3px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.12rem;
}
.scheme .scheme-meta {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 0 0 11px;
}
.scheme ul { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 0.9rem; }
.scheme li { margin-bottom: 6px; }
.scheme li b { color: var(--ink); font-weight: 600; }
.scheme .scheme-note {
  margin: 12px 0 0; padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem; color: var(--ink-soft);
}

/* ---- link cards (Plant Finder + calculators) ---- */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 17px;
  text-decoration: none;
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--rose);
}
.link-card .lc-ic { width: 26px; height: 26px; color: var(--rose-deep); margin-bottom: 4px; }
.link-card .lc-ic svg { display: block; width: 100%; height: 100%; }
.link-card .lc-name { font-family: var(--font-serif); font-weight: 600; font-size: 1rem; color: var(--ink); }
.link-card .lc-desc { font-size: 0.84rem; color: var(--ink-soft); }
.link-card .lc-go { font-size: 0.82rem; font-weight: 600; color: var(--rose-deep); margin-top: 2px; }

/* ---- soft inline tip box ---- */
.callout-tip {
  background: var(--rose-soft);
  border-left: 3px solid var(--rose);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 15px 20px;
}
.callout-tip p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.callout-tip p strong, .callout-tip p b { color: var(--rose-deep); font-weight: 600; }
