/* STRANGE HORTICULTURE arm.css - PATCH NOTES skin.
   Per-arm identity = the herbarium-teal chip (#2e7d72) plus honest version chips;
   the shared single blue rule under the header is the motif. Signal blue from
   base.css carries links + primary actions; teal is the arm's quiet accent
   (match count emphasis, glyph ink tint, the arm chip).

   Hierarchy tiers (INTENT R1/R6), made physically true in sizes:
     QUESTION tier  = the live match count + the candidate cards (the answer).
                      Count line is the loudest sub-H1 element; card names dominate
                      the result region. H1 = 30px (base).
     BODY tier      = the free-text search box + the facet chip groups.
     DEMOTED tier   = how-it-works, spoiler note, disclaimer, index + hub links.
                      Smallest, slate, below the fold.
   No two tiers render at the same size. Dominance order top-to-bottom:
     H1 > match-count > candidate names > search box > facet questions > demoted.

   Accessibility floor (binding): 44px tap targets, 14px+ sentence-case gating
   labels, 16px meaning-carrying text, color-naming answers render a swatch. */

:root {
  --accent: #2e7d72;      /* herbarium teal chip */
  --accent-ink: #256a60;  /* accent text */
}

.arm-chip.arm-herb { background: var(--accent); }

/* =========================================================================
   QUESTION TIER - live match count (loudest line under H1) + candidate cards
   ========================================================================= */
.id-app { margin: 14px 0 0; }

/* the true count line: mono figure, teal, the single loudest text after the H1. */
.match-count {
  font-family: var(--sans); font-size: 20px; font-weight: 700; line-height: 1.3;
  color: var(--ink); margin: 0 0 4px;
}
.match-count .mc-n { font-family: var(--mono); color: var(--accent-ink); }
.match-count .mc-tap { display: block; font-size: 15px; font-weight: 400; color: var(--slate); margin-top: 2px; }

/* =========================================================================
   BODY TIER - free-text search + facet chip groups (phrased as questions)
   ========================================================================= */
.id-search { margin: 12px 0 6px; }
.id-search .field-label { margin-bottom: 6px; }
.id-search-input {
  width: 100%; min-height: var(--tap); border: 1px solid var(--hair-strong);
  border-radius: 4px; background: var(--panel); color: var(--ink);
  font-family: var(--mono); font-size: 1.05rem; padding: 10px 14px;
}
.id-search-input:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }

.id-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px; }
.btn-reset-id {
  flex: none; font-family: var(--sans); font-weight: 600; font-size: 14px;
  letter-spacing: 0; background: var(--panel); color: var(--ink);
  border: 1px solid var(--hair-strong); border-radius: 4px;
  min-height: 44px; padding: 8px 16px; cursor: pointer;
}
.btn-reset-id:hover { border-color: var(--slate); }
.btn-reset-id:disabled { opacity: 0.4; cursor: default; }

.facet-groups { margin: 8px 0 4px; }
.facet-group { margin: 0 0 12px; }
.facet-q {
  /* body-tier label: sentence-case question a novice can answer. 15px, quiet. */
  font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink);
  margin: 0 0 8px; letter-spacing: 0;
}
.facet-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.facet-chip {
  min-height: 44px; padding: 6px 12px;
  border: 1px solid var(--hair-strong); border-radius: 4px;
  background: var(--panel); color: var(--ink);
  font-family: var(--mono); font-size: 0.95rem; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.facet-chip:hover { border-color: var(--slate); }
.facet-chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.facet-chip.on .fc-count { color: #dbe4fb; }
.facet-chip:disabled { opacity: 0.4; cursor: default; color: var(--slate-soft); }
.facet-chip .fc-count { font-size: 0.78rem; color: var(--slate-soft); }
/* a small color square inside color chips */
.facet-chip .fc-swatch {
  width: 13px; height: 13px; border-radius: 2px; flex: none;
  border: 1px solid rgba(0,0,0,0.28); display: inline-block;
}

/* =========================================================================
   CANDIDATE CARDS - the answer. Reserved min-height (no CLS).
   ========================================================================= */
.candidates { margin: 12px 0 6px; min-height: 320px; }
.cand-card {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--hair-strong); border-radius: 4px;
  background: var(--panel); padding: 12px 14px; margin: 0 0 8px;
}
.cand-glyph { flex: none; width: 40px; height: 40px; }
.cand-glyph svg { width: 40px; height: 40px; display: block; color: var(--accent-ink); }
.cand-body { min-width: 0; flex: 1 1 auto; }
.cand-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cand-name { font-family: var(--sans); font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.2; }
.cand-latin { font-family: var(--mono); font-size: 0.78rem; color: var(--slate-soft); }
.cand-swatches { display: inline-flex; gap: 4px; margin-left: auto; flex: none; }
.cand-swatch {
  width: 14px; height: 14px; border-radius: 3px; flex: none;
  border: 1px solid var(--hair-strong); display: inline-block;
}
.cand-appearance { font-size: 15px; color: var(--ink); margin: 6px 0 0; line-height: 1.5; }
.cand-detail { font-family: var(--mono); font-size: 0.8rem; color: var(--slate); margin: 6px 0 0; line-height: 1.5; }
.cand-caveat { font-family: var(--mono); font-size: 0.8rem; color: var(--blue-ink); margin: 6px 0 0; line-height: 1.5; }

/* shortlist state: when <= 3 candidates, cards expand slightly (R: bigger name, full details) */
.candidates.shortlist .cand-card { padding: 16px 18px; gap: 14px; }
.candidates.shortlist .cand-glyph, .candidates.shortlist .cand-glyph svg { width: 48px; height: 48px; }
.candidates.shortlist .cand-name { font-size: 20px; }
.candidates.shortlist .cand-appearance { font-size: 16px; }

.cand-empty {
  font-family: var(--mono); font-size: 0.95rem; color: var(--slate);
  border: 1px dashed var(--hair-strong); border-radius: 4px; padding: 16px; text-align: left;
}

/* =========================================================================
   DEMOTED-REFERENCE TIER - how-it-works, spoiler, disclaimer, links.
   Smallest text on the page; sits below the tool.
   ========================================================================= */
.demoted { margin: 26px 0 0; border-top: 1px solid var(--hair-strong); padding-top: 14px; }
.demoted h2 {
  /* R6 fix 2026-07-03: was 15px/700, identical to .facet-q (two tiers, one
     size = dominance-audit failure). Demoted-reference tier reads quiet. */
  font-family: var(--sans); font-weight: 400; font-size: 14px; color: var(--slate);
  margin: 16px 0 4px; letter-spacing: 0; text-transform: none;
}
.demoted h2:first-of-type { margin-top: 0; }
.demoted p { font-size: 15px; color: var(--slate); margin: 6px 0; max-width: 46em; }
.demoted .spoiler-note { font-family: var(--mono); font-size: 0.85rem; color: var(--slate); }
.demoted .disclaimer { font-family: var(--sans); font-size: 13.5px; color: var(--slate-soft); }
.demoted .provenance { font-family: var(--mono); font-size: 12.5px; color: var(--slate-soft); margin-top: 8px; }
.demoted-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; font-family: var(--mono); font-size: 13.5px; }
.demoted-links a {
  color: var(--blue); text-decoration: none; white-space: nowrap;
  border: 1px solid var(--hair); border-radius: 4px; padding: 6px 10px;
  background: var(--page); min-height: 30px; display: inline-flex; align-items: center;
}
.demoted-links a:hover { border-color: var(--blue); text-decoration: none; }

/* =========================================================================
   ALL-PLANTS LIST PAGE - alphabetical compact grid (one query one surface)
   ========================================================================= */
.list-intro { font-size: 15px; color: var(--slate); margin: 10px 0 4px; max-width: 46em; }
.list-note {
  font-family: var(--mono); font-size: 0.85rem; color: var(--slate);
  border: 1px solid var(--hair); border-radius: 4px; background: var(--panel);
  padding: 10px 12px; margin: 12px 0;
}
.plant-list { list-style: none; margin: 14px 0 6px; padding: 0; }
.plant-row {
  display: flex; gap: 12px; align-items: flex-start;
  border-bottom: 1px solid var(--hair); padding: 12px 0; scroll-margin-top: 12px;
}
.plant-row .pr-glyph { flex: none; width: 30px; height: 30px; }
.plant-row .pr-glyph svg { width: 30px; height: 30px; display: block; color: var(--accent-ink); }
.plant-row .pr-body { min-width: 0; flex: 1 1 auto; }
.plant-row .pr-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plant-row .pr-name { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--ink); }
.plant-row .pr-latin { font-family: var(--mono); font-size: 0.78rem; color: var(--slate-soft); }
.plant-row .pr-appearance { font-size: 14.5px; color: var(--slate); margin: 4px 0 0; line-height: 1.45; }

/* noscript static roster: quiet, crawler-facing */
.noscript-roster { font-size: 15px; color: var(--ink); margin: 12px 0; }
.noscript-roster p { margin: 6px 0; }

.fc-hint { font-family: var(--mono); font-size: 12.5px; color: var(--slate-soft); margin: 0 0 6px; }
