/* ============================================================
   PlantMapper — Modern Garden
   Pairs with plantmapper.css + ecosystem.css. Adds a sleek,
   contemporary theme (same mechanism as the other Garden Type hubs):
   a graphite-charcoal accent over the shared greens, on a cool
   concrete-cream ground — clean, architectural and calm. Plus the
   usual hub components, a colour-palette block and a CSS art hero.
   Does not modify any shared stylesheet.
   ============================================================ */

/* ---- graphite-and-green theme ---- */
body.theme-modern {
  --rose:      #4A5258;   /* graphite-charcoal accent              */
  --rose-deep: #2E3438;   /* near-black charcoal — text, icons     */
  --rose-soft: #E7E9EA;   /* pale concrete grey                    */
  --bg-cream:  #F2F2EF;   /* cool concrete cream                   */
  background:
    radial-gradient(1200px 660px at 84% -12%, #e7e9ea 0%, transparent 58%),
    radial-gradient(980px 560px at -8% 2%, #e6ebe2 0%, transparent 56%),
    var(--bg);
}

/* ---- CSS-art hero (clean geometric illustration, no external photo) ---- */
.hero-photo { min-height: 400px; }
.hero-photo .hero-art {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
}
@media (max-width: 860px) { .hero-photo { min-height: 300px; } }

/* ---- architectural plant cards (static, photo-led) ---- */
.wild-plants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 16px;
}
.wild-plant {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 19px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .25s ease;
}
.wild-plant:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
/* Photo banner — same fixed-ratio, centre-cropped treatment as the other
   hubs, so every card crops identically on desktop, tablet and mobile. A
   planter-and-architectural-plant motif shows underneath while a photo loads. */
.wild-photo {
  position: relative;
  height: 158px;
  margin: -18px -19px 13px;
  overflow: hidden;
  background: linear-gradient(155deg, var(--rose-soft), var(--green-soft));
}
.wild-photo::before {
  content: "";
  position: absolute; inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.85;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 130'><g fill='none' stroke='%235e7152' stroke-width='1.4' stroke-linecap='round'><path d='M70 110 L70 64'/><path d='M78 110 L82 60'/><path d='M62 110 L58 62'/><path d='M86 110 L94 66'/><path d='M54 110 L48 68'/></g><g fill='none' stroke='%232e3438' stroke-width='1.4'><rect x='52' y='110' width='44' height='14'/><circle cx='140' cy='96' r='16'/><rect x='123' y='70' width='2' height='52'/></g><g fill='none' stroke='%234a5258' stroke-width='1.2'><path d='M150 122 L150 80'/></g></svg>");
}
.wild-plant h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.wild-plant .latin {
  margin: 1px 0 8px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--muted);
}
.wild-plant p { margin: 0 0 11px; font-size: 0.88rem; color: var(--ink-soft); }
.wild-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.wild-tag {
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--rose-soft);
  color: var(--rose-deep);
}
.wild-tag.is-easy { background: var(--green-soft); color: var(--green-deep); }
.wild-tag.is-key  { background: #dde0e1; color: #2e3438; }

/* ---- modern colour-palette cards ---- */
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(232px, 1fr));
  gap: 16px;
}
.palette {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 19px 19px;
  box-shadow: var(--shadow-1);
}
.palette h3 {
  margin: 0 0 2px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
}
.palette .pal-meta {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin: 0 0 12px;
}
.palette .pal-swatches {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.palette .pal-sw { flex: 1; height: 52px; }
.palette p { margin: 0; font-size: 0.86rem; color: var(--ink-soft); }
.palette p b { color: var(--ink); font-weight: 600; }

/* ---- planting / 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; }
