/* ============================================================
   PlantMapper — Chicken Keeping Basics (Chickens silo)
   Pairs with plantmapper.css + ecosystem.css + garden-images.css.
   Adds a warm hen-and-straw theme (same mechanism as
   body.theme-gravel / body.theme-rockery / body.theme-woodland):
   a warm terracotta accent over the shared greens — the colours of
   hens, straw and a garden coop. Plus the usual hub components.
   Does not modify any shared stylesheet.
   ============================================================ */

/* ---- warm hen-and-straw theme ---- */
body.theme-chicken {
  --rose:      #B06A3E;   /* warm hen terracotta accent            */
  --rose-deep: #8A4F2E;   /* deep russet — text, icons, rules      */
  --rose-soft: #F6E7DA;   /* pale straw wash                       */
  --bg-cream:  #F6EFE6;   /* warm straw cream                      */
  background:
    radial-gradient(1200px 660px at 84% -12%, #f3e6d6 0%, transparent 58%),
    radial-gradient(960px 560px at -8% 2%, #eef0df 0%, transparent 56%),
    var(--bg);
}

/* ---- breed 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
   hen-and-straw motif shows underneath while the 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.9;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 130'><g fill='%23b06a3e'><path d='M96 40 C86 40 78 48 78 60 C78 66 80 71 84 75 L82 96 L74 96 C71 96 70 99 72 101 L120 101 C123 101 124 98 122 96 L112 96 C118 90 121 82 121 73 C127 74 132 71 133 65 C129 66 126 65 124 62 C123 52 116 44 106 41 C103 40 99 40 96 40 Z'/><path d='M96 34 C93 34 91 37 92 40 L100 43 C101 40 99 35 96 34 Z' fill='%238a4f2e'/></g><circle cx='90' cy='56' r='2.2' fill='%23f6efe6'/><g fill='%23e9b85a'><ellipse cx='140' cy='104' rx='11' ry='8'/><ellipse cx='156' cy='108' rx='9' ry='6.5'/></g><g stroke='%23c9a86a' stroke-width='1.2' stroke-linecap='round'><path d='M20 118 l14 -5'/><path d='M28 122 l16 -4'/><path d='M40 120 l15 -6'/><path d='M170 122 l14 -5'/><path d='M178 118 l12 -4'/></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: #f0ddc7; color: #8a4f2e; }

/* ---- scheme / cost 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 ---- */
.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; }
.link-card .lc-soon { font-size: 0.68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--earth); background: var(--bg-cream); border-radius: 999px; padding: 2px 8px; align-self: flex-start; 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; }

/* ---- simple cost table ---- */
.cost-table { width: 100%; border-collapse: collapse; margin: 8px 0 4px; font-size: 0.92rem; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cost-table th, .cost-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.cost-table thead th { background: var(--rose-soft); color: var(--rose-deep); font-weight: 700; font-size: 0.8rem; letter-spacing: .03em; text-transform: uppercase; }
.cost-table td:last-child, .cost-table th:last-child { text-align: right; white-space: nowrap; }
.cost-table tr:last-child td { border-bottom: 0; }
.cost-table tfoot td { font-weight: 700; color: var(--ink); background: var(--bg-cream); }
