/* modules/plants/public/plants-registry.css
 *
 * Registry-specific styling only. Everything structural (header, hero,
 * civic-page grid, section, related, citations) comes from the civic
 * stylesheets under /florida/css/ — plants deliberately reuses them so the two
 * corpora read as one publication and share a cache entry.
 *
 * Served at /plants/assets/plants-registry.css by the module's namespaced
 * static mount, NOT at root.
 */

/* ── Preview banner ─────────────────────────────────────────────────────
   Loud on purpose. A preview page that looks like a live page is how a
   half-finished corpus gets shared, linked and indexed by accident. */
.preview-banner {
  background: #7c2d12;
  color: #fff;
  padding: 10px 20px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.preview-banner strong { letter-spacing: .04em; text-transform: uppercase; font-size: 12px; }
.preview-banner code {
  background: rgba(255,255,255,.15);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 12px;
}

/* ── Indexing status chip ───────────────────────────────────────────────
   Shows the "earned" decision and, crucially, the REASON. The whole point of
   noindex-until-earned is that it is a rule, not a mood — so the page states
   which clause it failed. */
.index-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: baseline;
  margin: 0 0 22px;
  padding: 12px 16px;
  border-left: 3px solid #94a3b8;
  background: #f8fafc;
  font-size: 13.5px;
}
.index-status--earned  { border-left-color: #15803d; background: #f0fdf4; }
.index-status--held    { border-left-color: #b45309; background: #fffbeb; }
.index-status__label {
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 11px;
}
.index-status--earned .index-status__label { color: #15803d; }
.index-status--held   .index-status__label { color: #b45309; }
.index-status__reason { color: #475569; }

/* ── Name table — the moat, rendered ────────────────────────────────────── */
.name-table { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 14.5px; }
.name-table th, .name-table td {
  text-align: left; padding: 9px 12px; border-bottom: 1px solid #e2e8f0; vertical-align: top;
}
.name-table th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 700; }
.name-table td.name-table__name { font-weight: 600; white-space: nowrap; }
.name-table tr.is-accepted td { background: #f0fdf4; }
.name-table__src { color: #475569; font-size: 13px; }
.name-table__src a { color: #1d4ed8; }

/* Name-class badges. Colour carries meaning here (three legal statuses), so
   each badge also carries its own word — never colour alone. */
.nb { display: inline-block; padding: 2px 7px; border-radius: 3px; font-size: 11px;
      font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.nb--accepted_epithet     { background: #dcfce7; color: #166534; }
.nb--synonym              { background: #e0e7ff; color: #3730a3; }
.nb--trade_designation    { background: #fef3c7; color: #92400e; }
.nb--patent_denomination  { background: #fae8ff; color: #86198f; }
.nb--misspelling          { background: #f1f5f9; color: #475569; }

/* Evidence-only marker: admissible as dated first-use, never citable in prose. */
.nb--evidence { background: #f1f5f9; color: #64748b; border: 1px dashed #cbd5e1; }

/* ── Registry fact grid (P4) ────────────────────────────────────────────── */
.reg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px;
             background: #e2e8f0; border: 1px solid #e2e8f0; margin: 20px 0; }
.reg-fact { background: #fff; padding: 12px 14px; }
.reg-fact__label { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 700; }
.reg-fact__value { font-size: 15px; margin-top: 3px; }
.reg-fact__value--muted { color: #94a3b8; font-style: italic; }

/* ── Entity lists (genus hub children) ──────────────────────────────────── */
.entity-list { list-style: none; padding: 0; margin: 14px 0; display: grid;
               grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 18px; }
.entity-list li { padding: 5px 0; border-bottom: 1px solid #f1f5f9; font-size: 14.5px; }
.entity-list a { text-decoration: none; }
.entity-list a:hover { text-decoration: underline; }
.entity-list .syn { color: #64748b; font-size: 13px; display: block; }

.taxon-name { font-size: 19px; margin-bottom: 10px; }

/* Wide tables must scroll inside their own box, never the page body. */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 640px) {
  .name-table { font-size: 13.5px; }
  .name-table td.name-table__name { white-space: normal; }
}
