/* =====================================================================
   The Grove — Students for Stewardship Cork Board add-in
   Extends style.css. No new hex values — every color below is one of
   style.css's :root custom properties. See DESIGN_SPEC.md §1 and §5.2.
   ===================================================================== */

:root{
  --water:var(--pin-blue);   /* alias for readability in the icon system */
}

/* ---------- Grove sub-navigation (pill row under the intro, DESIGN_SPEC §3) ---------- */
.grove-tabs{
  display:flex;flex-wrap:wrap;gap:.4rem;
  margin:0 0 1.2rem;
}
.grove-tabs a{
  display:inline-flex;align-items:center;
  min-height:44px;padding:.5rem .9rem;
  border-radius:999px;text-decoration:none;
  font-size:.92rem;font-weight:600;
  color:var(--green-deep);
  background:#fff;border:1px solid #d4c5a3;
}
.grove-tabs a:hover,.grove-tabs a:focus-visible{
  background:#eef6ef;border-color:var(--green-soft);
}
.grove-tabs a.is-active{
  background:var(--green-deep);color:var(--cream);border-color:var(--green-deep);
}

/* ---------- Nursery site toggle + inline quick-update form (nursery.php) ---------- */
.btn-ghost.is-active{
  background:var(--green-deep);color:var(--cream);border-color:var(--green-deep);
}
.btn-ghost--sm{
  min-height:36px;padding:.4rem .8rem;font-size:.85rem;
}
.grove-quick-update{
  display:flex;flex-wrap:wrap;gap:.4rem;align-items:center;
  margin:.6rem 0 0;
}
.grove-quick-update input[type=number]{
  width:4.5rem;border-radius:8px;padding:.35rem .5rem;min-height:36px;
}
.grove-quick-update select{
  border-radius:8px;padding:.35rem .5rem;min-height:36px;
}

/* ---------- Library toolbar: search + filter chips (GET form, no JS) ---------- */
.grove-toolbar{
  margin:1rem 0 .3rem;
  background:#fff;border:1px solid #d4c5a3;border-radius:10px;
  padding:.9rem 1rem;
}
.grove-toolbar-row{
  display:flex;flex-wrap:wrap;gap:.7rem;align-items:end;
}
.grove-field{display:flex;flex-direction:column;gap:.3rem;min-width:150px;flex:1 1 150px;}
.grove-field label{font-weight:600;color:var(--green-deep);font-size:.85rem;}
.grove-field input[type=search],
.grove-field select{
  border-radius:999px;padding:.55rem .9rem;min-height:40px;
}
.grove-field--check{
  flex-direction:row;align-items:center;gap:.5rem;flex:0 0 auto;
  padding-bottom:.55rem;
}
.grove-field--check input{width:20px;height:20px;flex:0 0 auto;}
.grove-field--check label{font-size:.9rem;font-weight:500;}
.grove-toolbar-actions{display:flex;gap:.6rem;align-items:center;flex:0 0 auto;padding-bottom:.1rem;}
.grove-clear{font-size:.85rem;white-space:nowrap;}
.grove-count{
  margin:.6rem .1rem 0;font-size:.85rem;color:#6a7468;font-family:var(--font-mono);
}
.grove-count strong{color:var(--green-deep);}

/* ---------- Library pagination (server-side, ?page=N — DESIGN_SPEC §6.1) ----------
   Reuses the seedcard/toolbar register: cream chips, green-deep ink, wood edge. */
.grove-pager{
  display:flex;flex-wrap:wrap;align-items:center;justify-content:center;
  gap:.4rem;margin:1.2rem 0 .4rem;
}
.grove-pager-btn,
.grove-pager-num{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:40px;min-width:40px;padding:.4rem .8rem;
  border-radius:999px;text-decoration:none;
  font-size:.88rem;font-weight:600;
  color:var(--green-deep);background:#fff;border:1px solid #d4c5a3;
}
.grove-pager-btn:hover,.grove-pager-btn:focus-visible,
.grove-pager-num:hover,.grove-pager-num:focus-visible{
  background:#eef6ef;border-color:var(--green-soft);
}
.grove-pager-num.is-current{
  background:var(--green-deep);color:var(--cream);border-color:var(--green-deep);
  cursor:default;
}
.grove-pager-btn.is-disabled{
  opacity:.45;pointer-events:none;background:var(--paper);color:#8a8168;
}
.grove-pager-nums{display:inline-flex;flex-wrap:wrap;align-items:center;gap:.3rem;}
.grove-pager-gap{color:#8a8168;padding:0 .15rem;}

@media(max-width:480px){
  /* On phones keep the pager compact: hide the numeric window, lean on the
     First/Prev/Next/Last chips + the "page X of N" text in .grove-count. */
  .grove-pager-nums{display:none;}
}

/* ---------- Species Library grid (shelf/filecard register — reference data) ---------- */
.seedcard-grid{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));
  gap:.9rem;
}
.seedcard{
  background:#fffdf7;border:1px solid #ddd3bd;border-radius:8px;
  border-left:5px solid var(--green);
  box-shadow:0 2px 5px rgba(90,70,30,.12);
  transition:box-shadow .15s ease, transform .15s ease;
}
.seedcard:hover,.seedcard:focus-within{
  box-shadow:0 6px 14px rgba(90,70,30,.2);
  transform:translateY(-2px);
}
.seedcard-link{
  display:flex;flex-direction:column;gap:.4rem;
  padding:.9rem 1rem;text-decoration:none;color:inherit;height:100%;
}
.seedcard-name{
  font-family:var(--font-display);color:var(--green-deep);
  font-size:1.15rem;line-height:1.2;
}
.seedcard-sci{
  font-family:var(--font-serif);font-style:italic;
  font-size:.85rem;color:#5a6359;margin-top:-.2rem;
}
.seedcard-pill{
  align-self:flex-start;
  background:#e3f3e7;color:var(--green-deep);
  border:1px solid var(--green-soft);border-radius:999px;
  font-size:.76rem;font-weight:600;
  padding:.15rem .6rem;margin-top:.1rem;
}

/* ---------- The icon row (Pokemon-card face), DESIGN_SPEC §5.4 ---------- */
.gcard-icons{
  display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;
  margin-top:.15rem;
}
.gi{display:inline-flex;align-items:center;}
.gi svg{display:block;}
.gi-canopy{display:inline-flex;align-items:center;gap:.3rem;}
.gi-canopy-label{font-size:.72rem;color:#5a6359;white-space:nowrap;}
.gi-native{display:inline-flex;align-items:center;gap:.25rem;}
.gi-native-label{font-size:.72rem;color:#5a6359;white-space:nowrap;}

/* larger icon row on plant.php's header (DESIGN_SPEC §6.2) */
.gcard-icons--lg{gap:.7rem;margin:.6rem 0 .2rem;}
.gcard-icons--lg .gi svg{width:28px;height:28px;}
.gcard-icons--lg .gi-canopy svg{width:34px;height:25px;}
.gcard-icons--lg .gi-native-label,
.gcard-icons--lg .gi-canopy-label{font-size:.85rem;}

/* ---------- "Planted at Hunnicutt" summary (index.php) ---------- */
.grove-summary{margin-top:1.6rem;}
.grove-summary-site{
  margin:0 0 1.1rem;
  background:var(--cork-base);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(120,72,28,.35) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(90,52,18,.32) 0 1.5px, transparent 2px),
    radial-gradient(ellipse at 50% 50%, var(--cork-base), var(--cork-dark) 85%);
  background-size:13px 13px,17px 17px,100% 100%;
  border-radius:8px;padding:.9rem 1rem 1rem;
}
.grove-summary-site-h{
  font-family:var(--font-serif);color:#fff5e6;font-size:1.05rem;
  margin:0 0 .7rem;text-shadow:0 1px 2px rgba(40,22,4,.5);
}
.grove-summary-group{margin:0 0 .8rem;}
.grove-summary-group:last-child{margin-bottom:0;}
.grove-summary-group-h{
  font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;
  color:#fdf3df;margin:0 0 .4rem;
  text-shadow:0 1px 1px rgba(0,0,0,.3);
  font-family:var(--font-mono);
}
.grove-summary-list{
  list-style:none;margin:0;padding:0;
  display:flex;flex-wrap:wrap;gap:.4rem;
}
.grove-summary-item{
  background:#fffdf3;border:1px solid #e7cf3f;border-radius:999px;
  padding:.3rem .7rem;font-size:.82rem;color:var(--ink);
  display:inline-flex;align-items:baseline;gap:.3rem;
}
.grove-summary-item a{text-decoration:none;font-weight:600;color:var(--green-deep);}
.grove-summary-item a:hover{text-decoration:underline;}
.grove-summary-item-count{color:#6a5a20;font-size:.78rem;}
.grove-summary-empty{
  color:#fdf3df;font-style:italic;font-size:.9rem;
  text-shadow:0 1px 1px rgba(0,0,0,.3);
}

/* =====================================================================
   plant.php — single-species detail ("back of card")
   Shelf/filecard register, like the rest of the Library (DESIGN_SPEC §1).
   ===================================================================== */
.plantcard{
  max-width:640px;margin:0 auto 1.6rem;
  background:#fffdf7;border:1px solid #ddd3bd;border-radius:10px;
  border-left:6px solid var(--green);
  box-shadow:0 4px 12px rgba(90,70,30,.15);
  padding:1.6rem 1.5rem 1.2rem;
}
.plantcard-head{margin-bottom:.4rem;}
.plantcard-name{
  font-family:var(--font-display);color:var(--green-deep);
  font-size:clamp(1.5rem,4vw,2.1rem);margin:0 0 .1rem;line-height:1.15;
}
.plantcard-sci{
  font-family:var(--font-serif);font-style:italic;
  font-size:1.05rem;color:#5a6359;margin:0 0 .6rem;
}
.plantcard-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:.9rem;
  margin:0 0 .5rem;font-size:.92rem;color:#3c473e;
}
.plantcard-family{font-weight:600;}
.plantcard-badge{display:inline-flex;align-items:center;gap:.3rem;}
.plantcard-source{margin:0 0 .5rem;font-size:.88rem;}
.plantcard-caveat,.grove-caveat{
  margin:0 0 .8rem;font-size:.9rem;line-height:1.4;color:#8a201b;
  background:#fbe6e4;border:1px solid var(--pin-red-hi);border-left:4px solid var(--pin-red);
  border-radius:6px;padding:.6rem .8rem;
}
.grove-caveat{margin:.6rem 0 1rem;max-width:60ch;}

/* larger icon row wrapper on the header — targets .gcard-icons--lg rules already defined above */
.gcard-icons--lg{display:flex;flex-wrap:wrap;}

/* ---------- Full stats panel: plain two-column dl inside .discussion-expander ---------- */
.gstat-dl{
  display:grid;grid-template-columns:minmax(120px,40%) 1fr;
  gap:.5rem 1rem;margin:0 0 1rem;
}
.gstat-dl dt{font-weight:600;color:var(--green-deep);font-size:.88rem;}
.gstat-dl dd{margin:0;font-size:.92rem;color:#333c35;}
@media(max-width:480px){
  .gstat-dl{grid-template-columns:1fr;gap:.15rem 0;}
  .gstat-dl dt{margin-top:.5rem;}
  .gstat-dl dt:first-child{margin-top:0;}
}

/* ---------- "Planted at Hunnicutt" section (per-species instance list) ---------- */
.plant-instances{max-width:640px;margin:0 auto;}
.plant-instances-cta{
  display:flex;flex-wrap:wrap;gap:.7rem;align-items:center;margin-top:.8rem;
}
.plant-instances-cta--more{margin-top:1rem;}

.plant-instance-grid{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:.8rem;
}
.plant-instance-card{
  background:#fffdf7;border:1px solid #ddd3bd;border-radius:8px;
  border-left:5px solid var(--pin-blue);
  box-shadow:0 2px 5px rgba(90,70,30,.12);
  transition:box-shadow .15s ease, transform .15s ease;
}
.plant-instance-card:hover,.plant-instance-card:focus-within{
  box-shadow:0 6px 14px rgba(90,70,30,.2);
  transform:translateY(-2px);
}
.plant-instance-link{
  display:flex;flex-direction:column;text-decoration:none;color:inherit;height:100%;
}
.plant-instance-thumb{
  width:100%;height:110px;object-fit:cover;
  border-radius:7px 7px 0 0;border-bottom:1px solid #ece7da;
}
.plant-instance-body{
  display:flex;flex-direction:column;gap:.3rem;padding:.7rem .85rem .8rem;
}
.plant-instance-nickname{
  font-family:var(--font-display);color:var(--green-deep);
  font-size:1.02rem;line-height:1.2;
}
.plant-instance-meta{font-size:.8rem;color:#5a6359;}
.plant-instance-notes{font-size:.82rem;color:#4a544c;}

/* ---------- Health badge: 5=green .. 1=red, reuses existing tint pairs from style.css ---------- */
.health-badge{
  align-self:flex-start;
  font-size:.74rem;font-weight:600;border-radius:999px;
  padding:.12rem .55rem;border:1px solid;
}
.health-5{background:#e3f3e7;border-color:var(--green-soft);color:var(--green-deep);}
.health-4{background:#eef6ef;border-color:var(--green);color:var(--green-deep);}
.health-3{background:var(--paper);border-color:var(--wood-light);color:var(--wood-dark);}
.health-2{background:#fbe6e4;border-color:var(--pin-red-hi);color:#8a201b;}
.health-1{background:#fbe6e4;border-color:var(--pin-red);color:var(--clay-text);}
.health-0{background:#fff;border-color:#d4c5a3;color:#6a7468;}

/* ---------- add.php — log a planting (formcard, green tack: Grove/cork register) ---------- */
.tack--green{
  background:radial-gradient(circle at 34% 28%,var(--green-soft),var(--green-deep) 68%);
}
.grove-idq-hint{
  margin:-.4rem 0 1.1rem;font-size:.88rem;color:#5a6359;
}
.grove-idq-hint a{font-weight:600;}

/* =====================================================================
   wishlist.php — sticky-note wish list board (cork/pushpin register)
   .note--wish extends .note--paper (DESIGN_SPEC §1 table): same paper
   sticky-note recipe, plus a green left accent so it still reads as
   "Grove" rather than the board's Questions/Projects notes.
   ===================================================================== */
.note--wish{
  background:
    repeating-linear-gradient(180deg,transparent 0 27px,var(--paper-line) 27px 28px),
    linear-gradient(180deg,var(--paper),var(--paper-edge));
  border:1px solid var(--paper-edge);
  border-left:4px solid var(--green);
  border-radius:3px 3px 5px 5px;
  padding:1.5rem 1.1rem 1rem;
}
.note--wish::after{ /* curled corner, same recipe as .note--paper */
  content:"";position:absolute;right:0;bottom:0;
  border-width:0 0 16px 16px;border-style:solid;
  border-color:transparent transparent #d9ca7f #efe2a0;
}
.wish-species{
  font-family:var(--font-display);color:var(--green-deep);
  font-weight:700;font-size:1.1rem;line-height:1.25;margin:0 0 .35rem;
}
.wish-species a{color:inherit;text-decoration:none;}
.wish-species a:hover{text-decoration:underline;}
.wish-species--unverified{font-style:italic;color:#4a544c;}
.wish-notes{margin:0 0 .5rem;font-size:.88rem;color:#3c473e;}
.wish-foot{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:.3rem;
  font-size:.78rem;color:#5a6359;margin:.4rem 0 0;align-items:baseline;
}

/* admin-only inline controls under a wish card */
.wish-status-form{
  display:flex;gap:.4rem;align-items:center;flex-wrap:wrap;
  margin:.6rem 0 0;
}
.wish-status-form select{
  min-height:34px;padding:.2rem .5rem;font-size:.8rem;border-radius:6px;
}
.wish-status-form .btn-primary{
  min-height:34px;padding:.25rem .7rem;font-size:.78rem;
}
.note--wish .del-form{margin:.5rem 0 0;}

/* ---------- Small accessibility utility (not in style.css; used for the
   status <select>'s visually-hidden label on wishlist.php admin cards) ---------- */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* =====================================================================
   inventory.php — Field Instances (cork/pushpin register, green tack)
   .note--grove extends .note: a lined index-card recipe like .note--card,
   recolored green so it reads as "Grove" data rather than a board post.
   DESIGN_SPEC.md §1, §6.3.
   ===================================================================== */
.note--grove{
  background:
    repeating-linear-gradient(180deg,transparent 0 25px, rgba(62,124,79,.14) 25px 26px),
    linear-gradient(180deg,#f8fbf6,#eef4ec);
  border:1px solid #cfe0cf;
  border-radius:3px;
  padding:1.5rem 1.1rem 1rem 1.5rem;
  box-shadow:inset 3px 0 0 var(--green), var(--shadow-note);
}
.note--grove .note-title{color:var(--green-deep);}
.note--grove .del-form{margin:.6rem 0 0;}

.grove-instance-thumb{
  width:100%;height:120px;object-fit:cover;border-radius:5px;
  margin:0 0 .6rem;border:1px solid #e0d8c5;
}
.grove-instance-species{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem;
  margin:0 0 .3rem;font-size:.95rem;
}
.grove-instance-species a{font-weight:600;color:var(--green-deep);text-decoration:none;}
.grove-instance-species a:hover{text-decoration:underline;}
.grove-instance-species--unverified em{color:#4a544c;}
.grove-unconfirmed-tag{
  font-size:.72rem;font-weight:600;color:#8a5e2e;
  background:var(--paper);border:1px solid var(--wood-light);border-radius:999px;
  padding:.05rem .5rem;
}
.grove-instance-qty{color:#5a6359;font-size:.85rem;font-weight:600;}
.grove-instance-line{
  display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:0 0 .3rem;
}
.grove-status{
  font-size:.78rem;color:#3a5a86;background:var(--card);border:1px solid var(--card-edge);
  border-radius:999px;padding:.1rem .55rem;
}
.grove-instance-planted{margin:0 0 .3rem;font-size:.82rem;color:#5a6359;}

/* =====================================================================
   identify.php — Identify Queue (postcard register, photo-first)
   .note--idq is layered on top of .note--postcard (list cards) with no
   overrides of its own — the detail view reuses .bignote--postcard
   directly. DESIGN_SPEC §1, §6.6.
   ===================================================================== */
.idq-photo-placeholder,
.idq-detail-photo-placeholder{
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,#efe9da,#e4ddc9);
  color:#8a8168;font-size:.82rem;font-style:italic;
}
.idq-detail-photo-placeholder{height:220px;}

.idq-suggestion-guess{font-style:italic;color:#4a544c;}

.idq-matched-note{
  max-width:640px;margin:0 auto 1.5rem;padding:.8rem 1rem;
  background:#e3f3e7;border:1px solid var(--green-soft);border-radius:8px;
  color:var(--green-deep);font-size:.92rem;text-align:center;
}
.idq-matched-note a{font-weight:600;}

/* =====================================================================
   observe.php — Log an observation + recent field-notes feed.
   Field-data extension. Reuses the .formcard recipe from add.php; the
   feed cards echo the .plant-instance-card index-card look.
   ===================================================================== */
.grove-actions{
  display:flex;flex-wrap:wrap;gap:.6rem;margin:.6rem 0 0;
}
.grove-action-link{
  display:inline-flex;align-items:center;gap:.3rem;
  font-size:.88rem;font-weight:600;text-decoration:none;
  color:var(--green-deep);
  background:#e3f3e7;border:1px solid var(--green-soft);border-radius:999px;
  padding:.3rem .8rem;min-height:34px;
}
.grove-action-link:hover,.grove-action-link:focus-visible{
  background:#d4ecda;border-color:var(--green);
}
.obs-empty-note{margin:.4rem 0 0;font-size:.92rem;color:#5a6359;}

/* ---------- Symptom badge: good/warn/bad tone, never color alone (text label) ---------- */
.symptom-badge{
  display:inline-block;
  font-size:.74rem;font-weight:600;border-radius:999px;
  padding:.12rem .55rem;border:1px solid;line-height:1.35;
}
.symptom-good{background:#e3f3e7;border-color:var(--green-soft);color:var(--green-deep);}
.symptom-warn{background:var(--paper);border-color:var(--wood-light);color:var(--wood-dark);}
.symptom-bad{background:#fbe6e4;border-color:var(--pin-red);color:#8a201b;}
.obs-rating{
  font-size:.74rem;font-weight:600;color:#5a6359;
  background:#fffdf3;border:1px solid #ddd3bd;border-radius:999px;padding:.1rem .5rem;
}

/* ---------- Recent field-notes feed (observe.php) ---------- */
.obs-feed{max-width:640px;margin:1.6rem auto 0;}
.obs-card-grid{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.8rem;
}
.obs-card{
  background:#fffdf7;border:1px solid #ddd3bd;border-radius:8px;
  border-left:5px solid var(--green);
  box-shadow:0 2px 5px rgba(90,70,30,.12);
  display:flex;flex-direction:column;overflow:hidden;
}
.obs-card-thumb{
  width:100%;height:110px;object-fit:cover;
  border-bottom:1px solid #ece7da;
}
.obs-card-body{display:flex;flex-direction:column;gap:.35rem;padding:.7rem .85rem .8rem;}
.obs-card-plant{margin:0;font-size:.95rem;}
.obs-card-plant a{font-family:var(--font-display);color:var(--green-deep);text-decoration:none;font-weight:600;}
.obs-card-plant a:hover{text-decoration:underline;}
.obs-card-sp{display:block;font-family:var(--font-serif);font-style:italic;font-size:.8rem;color:#5a6359;}
.obs-card-line{margin:0;font-size:.82rem;color:#4a544c;}
.obs-card-k{font-weight:600;color:var(--green-deep);}
.obs-card-notes{margin:0;font-size:.84rem;color:#3c473e;}
.obs-card-foot{
  display:flex;flex-wrap:wrap;justify-content:space-between;gap:.3rem;
  margin:.2rem 0 0;font-size:.76rem;color:#5a6359;align-items:baseline;
}

/* ---------- Observations under a field instance (plant.php) ---------- */
.instance-obs{
  border-top:1px dashed #ddd3bd;margin:0 .85rem;padding:.6rem 0 .8rem;
  display:flex;flex-direction:column;gap:.5rem;
}
.instance-obs-h{margin:0;font-size:.76rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.03em;color:#6a7468;font-family:var(--font-mono);}
.obs-row-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.5rem;}
.obs-row{display:flex;gap:.5rem;align-items:flex-start;}
.obs-row-thumb{
  width:44px;height:44px;object-fit:cover;border-radius:5px;flex:0 0 auto;
  border:1px solid #e0d8c5;
}
.obs-row-body{display:flex;flex-direction:column;gap:.2rem;min-width:0;}
.obs-row-top{display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;margin:0;}
.obs-row-when{font-size:.74rem;color:#6a7468;}
.obs-row-line{margin:0;font-size:.78rem;color:#4a544c;}
.obs-row-notes{margin:0;font-size:.8rem;color:#3c473e;}
.obs-row-foot{margin:0;font-size:.74rem;color:#5a6359;}
.instance-obs-log{
  align-self:flex-start;font-size:.82rem;font-weight:600;text-decoration:none;
  color:var(--green-deep);
}
.instance-obs-log:hover{text-decoration:underline;}

/* =====================================================================
   plant.php — Companions & Conflicts (curated interaction graph).
   Good = green left accent, bad = red. Color is paired with the type
   text + a labeled confidence chip, never color alone.
   ===================================================================== */
.plant-companions{max-width:640px;margin:1.6rem auto 0;}
.companions-intro{margin:0 0 .8rem;font-size:.9rem;color:#4a544c;line-height:1.45;}
.companion-grid{
  list-style:none;margin:0 0 1.2rem;padding:0;
  display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:.8rem;
}
.companion-card{
  background:#fffdf7;border:1px solid #ddd3bd;border-radius:8px;
  box-shadow:0 2px 5px rgba(90,70,30,.12);
  padding:.8rem .9rem;display:flex;flex-direction:column;gap:.35rem;
}
.companion-good{border-left:5px solid var(--green);}
.companion-bad{border-left:5px solid var(--pin-red);}
.companion-other{margin:0;font-size:1.02rem;}
.companion-other a{font-family:var(--font-display);color:var(--green-deep);text-decoration:none;font-weight:600;}
.companion-other a:hover{text-decoration:underline;}
.companion-type{
  display:flex;flex-wrap:wrap;align-items:center;gap:.35rem;
  margin:0;font-size:.85rem;font-weight:600;color:#3c473e;
}
.companion-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto;}
.companion-good .companion-dot{background:var(--green);}
.companion-bad .companion-dot{background:var(--pin-red);}
.companion-dir{
  font-size:.7rem;font-weight:600;color:#6a7468;
  background:var(--paper);border:1px solid #ddd3bd;border-radius:999px;padding:.05rem .45rem;
}
.companion-mech{margin:0;font-size:.82rem;color:#4a544c;}
.companion-notes{margin:0;font-size:.82rem;color:#3c473e;}
.companion-foot{
  display:flex;flex-wrap:wrap;gap:.4rem;align-items:baseline;margin:.1rem 0 0;
  font-size:.74rem;color:#5a6359;
}
.companion-conf{
  font-weight:600;border-radius:999px;padding:.05rem .5rem;border:1px solid;
}
.conf-observed-here{background:#e3f3e7;border-color:var(--green-soft);color:var(--green-deep);}
.conf-literature{background:var(--card);border-color:var(--card-edge);color:#3a5a86;}
.conf-traditional-knowledge{background:var(--paper);border-color:var(--wood-light);color:var(--wood-dark);}
.conf-unverified{background:#fff;border-color:#d4c5a3;color:#6a7468;}
.companion-src{font-style:italic;}
.companion-card .del-form{margin:.4rem 0 0;}

/* admin add-interaction form (reuses .field / .form-actions from the board) */
.companion-addform{
  background:#fff;border:1px solid #d4c5a3;border-radius:10px;
  padding:1rem 1.1rem;margin-top:.6rem;
}
.companion-addform-h{
  margin:0 0 .7rem;font-family:var(--font-display);color:var(--green-deep);font-size:1.1rem;
}
.companion-admin-tag{
  font-family:var(--font-mono);font-size:.68rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;color:#8a5e2e;background:var(--paper);
  border:1px solid var(--wood-light);border-radius:999px;padding:.05rem .5rem;vertical-align:middle;
}
.field--check{display:flex;align-items:center;gap:.5rem;}
.field--check input{width:20px;height:20px;flex:0 0 auto;}
.field--check label{font-weight:500;}

/* =====================================================================
   SCHEMA_v2 real-data additions — provenance note, richer seedcards,
   description/phonetic on plant.php, category prose panels, and the NC
   State cross-reference chips ("often confused with" / "similar niche").
   Reuses the existing custom properties only — no new visual language.
   ===================================================================== */

/* Library intro: real-source note (replaces the old AI-fabrication caveat) */
.grove-provenance-note{
  margin:.6rem 0 1rem;max-width:62ch;
  font-size:.88rem;line-height:1.45;color:var(--green-deep);
  background:#e3f3e7;border:1px solid var(--green-soft);border-left:4px solid var(--green);
  border-radius:6px;padding:.55rem .8rem;
}
.grove-provenance-note a{font-weight:600;}

/* Seedcard: family line + one-line description hook */
.seedcard-family{
  font-size:.74rem;color:#6a7468;letter-spacing:.01em;margin-top:-.15rem;
}
.seedcard-hook{
  font-size:.82rem;line-height:1.4;color:#4a544c;margin-top:.1rem;
}

/* plant.php header: phonetic, description, provenance line */
.plantcard-phonetic{
  font-family:var(--font-mono);font-style:normal;
  font-size:.82rem;color:#6a7468;margin-left:.35rem;
}
.plantcard-desc{
  margin:.7rem 0 .6rem;font-size:.95rem;line-height:1.55;color:#333c35;
}
.plantcard-source{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem;
  margin:.2rem 0 .3rem;font-size:.86rem;color:#5a6359;
}
.plantcard-prov-note{
  font-style:italic;font-size:.8rem;color:#6a7468;
}

/* Long prose blocks inside a category <details> (Edibility, Ethnobotany) */
.gstat-prose{margin:.2rem 0 1rem;}
.gstat-prose-h{
  margin:0 0 .25rem;font-size:.82rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.03em;color:var(--green-deep);font-family:var(--font-mono);
}
.gstat-prose p{margin:0;font-size:.9rem;line-height:1.55;color:#333c35;}

/* Companions & Conflicts: NC State cross-reference chip lists */
.companion-xref{
  margin:.2rem 0 1.2rem;padding:.9rem 1rem;
  background:#fffdf7;border:1px solid #ddd3bd;border-radius:8px;
  border-left:5px solid var(--wood-light);
}
.companion-xref-h{
  margin:0 0 .3rem;font-family:var(--font-display);color:var(--green-deep);font-size:1.05rem;
}
.companion-xref-intro{margin:0 0 .7rem;font-size:.84rem;line-height:1.45;color:#5a6359;}
.xref-row{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.4rem .6rem;
  margin:0 0 .55rem;
}
.xref-row:last-child{margin-bottom:0;}
.xref-label{
  flex:0 0 auto;font-size:.8rem;font-weight:700;color:var(--wood-dark);
  min-width:9rem;
}
.xref-chips{display:flex;flex-wrap:wrap;gap:.35rem;}
.xref-chip{
  font-family:var(--font-serif);font-style:italic;font-size:.82rem;
  color:#4a544c;background:var(--paper);border:1px solid var(--wood-light);
  border-radius:999px;padding:.1rem .6rem;
}
.xref-chip--link{
  font-style:italic;text-decoration:none;color:var(--green-deep);
  background:#e3f3e7;border-color:var(--green-soft);
}
.xref-chip--link:hover,.xref-chip--link:focus-visible{
  background:#d4ecda;border-color:var(--green);
}

/* ---------- Species typeahead (add.php / wishlist.php / plant.php) ----------
   Vanilla-JS autocomplete that replaced the 4,725-option <select>. The block is
   position:relative so the results list can hang beneath the search box. Colours
   and radii reuse the shared index-card / paper palette from style.css. */
.grove-typeahead{position:relative;}
.grove-ta-list{
  list-style:none;margin:.3rem 0 0;padding:.25rem;
  position:absolute;left:0;right:0;z-index:30;
  max-height:16rem;overflow-y:auto;
  background:#fffdf3;border:2px solid var(--green-soft);border-radius:8px;
  box-shadow:var(--shadow-note);
}
.grove-ta-opt{
  display:flex;flex-direction:column;gap:.1rem;
  padding:.5rem .6rem;border-radius:6px;cursor:pointer;
  min-height:44px;justify-content:center;
}
.grove-ta-opt:hover,
.grove-ta-opt.is-active{background:#e3f3e7;}
.grove-ta-opt-name{font-weight:600;color:var(--green-deep);}
.grove-ta-opt-meta{
  font-family:var(--font-serif);font-style:italic;font-size:.82rem;color:#4a544c;
}
.grove-ta-empty{
  padding:.55rem .6rem;font-size:.85rem;color:#6a7468;
}
.grove-ta-chosen{
  display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;
  margin:.3rem 0 0;padding:.55rem .7rem;
  background:#e3f3e7;border:1px solid var(--green-soft);border-radius:8px;
}
.grove-ta-chosen-name{font-weight:600;color:var(--green-deep);}
.grove-ta-change{
  font:inherit;font-size:.82rem;font-weight:600;cursor:pointer;
  color:var(--green-deep);background:#fff;border:1px solid var(--green-soft);
  border-radius:999px;padding:.15rem .7rem;min-height:auto;width:auto;
}
.grove-ta-change:hover,
.grove-ta-change:focus-visible{background:var(--green-deep);color:var(--cream);border-color:var(--green-deep);}

/* ---------- Responsive ---------- */
@media(max-width:480px){
  .seedcard-grid{grid-template-columns:1fr 1fr;}
  .obs-card-grid,.companion-grid{grid-template-columns:1fr;}
  .xref-label{min-width:0;flex-basis:100%;}
}
@media(max-width:360px){
  .seedcard-grid{grid-template-columns:1fr;}
}

/* =====================================================================
   index.php — Hunnicutt-first home (MAP_SPEC §4)
   Hero + prominent map CTA, the HAVE ("growing now") chips, the WANT wish
   list, and the now-secondary Library framing. Reuses the green/cork palette
   and pill/index-card register — no new hex values.
   ===================================================================== */
.grove-home-hero{margin-bottom:1.4rem;}

/* The front door to map.php — deliberately the loudest thing on the page, sitting
   where the old (often-empty) "what's planted" summary block used to be. */
.grove-map-cta{
  display:flex;align-items:center;gap:.9rem;
  margin:1rem 0 .2rem;padding:1rem 1.15rem;
  text-decoration:none;color:var(--cream);
  background:
    radial-gradient(circle at 12% 18%, rgba(255,255,255,.12) 0 38%, transparent 60%),
    linear-gradient(135deg, var(--green-deep), var(--green) 92%);
  border:1px solid var(--green-deep);border-radius:12px;
  box-shadow:0 4px 12px rgba(47,93,58,.28);
  transition:box-shadow .15s ease, transform .15s ease;
}
.grove-map-cta:hover,.grove-map-cta:focus-visible{
  box-shadow:0 8px 20px rgba(47,93,58,.36);transform:translateY(-2px);
}
.grove-map-cta-pin{
  font-size:1.9rem;line-height:1;flex:0 0 auto;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
.grove-map-cta-text{display:flex;flex-direction:column;gap:.15rem;flex:1 1 auto;min-width:0;}
.grove-map-cta-title{font-family:var(--font-display);font-size:1.2rem;line-height:1.15;}
.grove-map-cta-sub{font-size:.86rem;line-height:1.4;color:#eaf5ea;}
.grove-map-cta-arrow{font-size:1.3rem;flex:0 0 auto;transition:transform .15s ease;}
.grove-map-cta:hover .grove-map-cta-arrow,
.grove-map-cta:focus-visible .grove-map-cta-arrow{transform:translateX(3px);}

/* HAVE — "Growing at Hunnicutt right now": de-duplicated species chips per site */
.grove-have{margin:1.6rem 0 0;}
.grove-have-lead,
.grove-want-lead{
  margin:.2rem 0 .8rem;font-size:.92rem;line-height:1.5;color:#4a544c;max-width:64ch;
}
.grove-have-empty{margin:.4rem 0;font-size:.92rem;color:#5a6359;font-style:italic;}
.grove-have-site{
  margin:1rem 0 .5rem;font-size:.9rem;font-weight:700;color:var(--wood-dark);
}
.grove-have-chips{
  list-style:none;margin:0 0 .4rem;padding:0;display:flex;flex-wrap:wrap;gap:.4rem;
}
.grove-have-chip{
  display:inline-flex;align-items:baseline;gap:.3rem;
  background:#fffdf3;border:1px solid var(--green-soft);border-radius:999px;
  padding:.3rem .7rem;font-size:.85rem;color:var(--ink);
}
.grove-have-chip a{text-decoration:none;font-weight:600;color:var(--green-deep);}
.grove-have-chip a:hover{text-decoration:underline;}
.grove-have-chip-qty{color:#6a7468;font-size:.78rem;}
.grove-have-more{margin:.6rem 0 0;font-size:.88rem;}
.grove-have-more a{font-weight:600;text-decoration:none;color:var(--green-deep);}
.grove-have-more a:hover{text-decoration:underline;}

/* WANT — the seeded wish list as sticky notes (extends .note-grid / .note--wish) */
.grove-want{margin:1.6rem 0 0;}
.grove-want-grid{margin-top:.8rem;}

/* "Suggest a plant" tile that ends the wish-list board — a dashed add-affordance
   rather than a filled sticky note. Appended after .note--wish so its border
   longhands win over that rule's border-left shorthand. */
.note--wish-add{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.25rem;text-align:center;text-decoration:none;color:var(--green-deep);
  min-height:120px;
  border-width:2px;border-style:dashed;border-color:var(--green-soft);
  background:linear-gradient(180deg,#fbfdf9,#eef4ec);
}
.note--wish-add:hover,.note--wish-add:focus-visible{
  border-color:var(--green);background:#e9f4ea;
}
.note--wish-add::after{display:none;}   /* no curled corner on the add tile */
.wish-add-plus{font-size:1.8rem;line-height:1;font-weight:700;color:var(--green);}
.wish-add-label{font-family:var(--font-display);font-size:1.05rem;font-weight:700;}
.wish-add-sub{font-size:.8rem;color:#5a6359;}

/* LIBRARY — now clearly secondary: a dashed rule + muted framing set it apart
   from the Hunnicutt-first content above. */
.grove-library-section{
  margin-top:2rem;padding-top:1.2rem;border-top:2px dashed #d9ca9f;
}
.grove-library-head{margin-bottom:.4rem;}
.grove-library-count{font-size:.9rem;font-weight:500;color:#6a7468;}
.grove-library-sub{
  margin:.2rem 0 .4rem;font-size:.9rem;line-height:1.5;color:#5a6359;max-width:64ch;
}

/* =====================================================================
   plant.php — RELATIONSHIPS hoisted to the top of the card (the reframe).
   A guild-layer + optimal-soil-pH strip under the identity row, and the
   "Full plant profile" wrapper that keeps the stat panels below.
   ===================================================================== */
.plant-relationships{
  margin:.9rem 0 .2rem;padding:.8rem .9rem;
  background:#e3f3e7;border:1px solid var(--green-soft);
  border-left:4px solid var(--green);border-radius:8px;
}
.plant-relationships-lead{
  margin:0 0 .5rem;font-size:.74rem;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;color:var(--green-deep);font-family:var(--font-mono);
}
.rel-chips{display:flex;flex-wrap:wrap;gap:.5rem;}
.rel-chip{
  display:inline-flex;flex-direction:column;gap:.05rem;
  background:#fffdf7;border:1px solid var(--green-soft);border-radius:8px;
  padding:.35rem .7rem;
}
.rel-chip-k{
  font-size:.68rem;font-weight:700;text-transform:uppercase;letter-spacing:.03em;color:#6a7468;
  font-family:var(--font-mono);
}
.rel-chip-v{font-size:.95rem;font-weight:600;color:var(--green-deep);}
.rel-jump{
  display:inline-block;margin:.6rem 0 0;font-size:.84rem;font-weight:600;
  text-decoration:none;color:var(--green-deep);
}
.rel-jump:hover,.rel-jump:focus-visible{text-decoration:underline;}

/* Full plant profile — the encyclopedic stat panels, kept below the companions. */
.plant-stats{max-width:640px;margin:1.2rem auto 0;}

/* ---------- Responsive: home + relationships ---------- */
@media(max-width:480px){
  .grove-map-cta{gap:.6rem;padding:.85rem .9rem;}
  .grove-map-cta-title{font-size:1.08rem;}
  .grove-map-cta-sub{font-size:.8rem;}
  .grove-map-cta-arrow{display:none;}
}
