/* ============================================================
   PlantMapper — Japanese Garden
   Pairs with plantmapper.css + ecosystem.css. Adds a calm,
   refined Japanese theme (same mechanism as body.theme-med /
   body.theme-tropical / body.theme-shade / body.theme-wildlife /
   body.theme-woodland / body.theme-gravel): deep moss greens lifted
   by a single, restrained maple-crimson accent — the one note of
   colour in a quiet, green garden. Plus the usual hub components.
   Does not modify any shared stylesheet.
   ============================================================ */

/* ---- maple-and-moss theme ---- */
body.theme-japanese {
  --rose:      #9C3F3F;   /* muted maple-crimson accent            */
  --rose-deep: #762D2D;   /* deep maple — text, icons, rules       */
  --rose-soft: #EFDFDD;   /* soft blush wash                       */
  --bg-cream:  #F4F1EA;   /* warm washi-paper cream                */
  background:
    radial-gradient(1200px 660px at 84% -12%, #efe2df 0%, transparent 56%),
    radial-gradient(980px 560px at -8% 2%, #e4ecdf 0%, transparent 56%),
    var(--bg);
}

/* ---- signature-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
   stone-lantern-and-maple motif shows underneath while a photo loads or offline. */
.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='%235e7152'><path d='M70 120 h26 l-3 -7 h-20 z'/><rect x='76' y='100' width='14' height='13'/><path d='M72 100 h22 l-4 -9 h-14 z'/><rect x='80' y='78' width='6' height='13'/><path d='M68 78 h30 l-6 -10 h-18 z'/><circle cx='83' cy='62' r='4'/></g><g fill='%239c3f3f'><path d='M126 64 c6 -4 11 -3 14 1 c5 -3 10 -1 11 4 c5 0 8 4 6 9 c3 3 1 9 -4 9 c0 5 -6 7 -10 4 c-3 4 -10 3 -11 -2 c-5 1 -9 -4 -7 -9 c-4 -2 -4 -8 1 -10 c-2 -4 1 -8 5 -7 z'/><path d='M139 70 v22' stroke='%237a2b2b' stroke-width='1'/></g><g fill='%239c3f3f' opacity='0.85'><path d='M40 40 l3 6 6 1 -4 4 1 6 -6 -3 -6 3 1 -6 -4 -4 6 -1 z'/></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: #ecd9d6; color: #762d2d; }

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