/* «Зільник» - добірки трав: хаб (/herbs) і сторінка зрізу (/herbs/<type>/<slug>).
   Каркас (.herb-main), хлібні крихти, сітка карток (.rel-*) і CTA приходять
   із herb.css - він грузиться поруч. Тут лише те, чого сторінка рослини не має:
   чипси термінів, вступ і смуга фактів. */

/* ---- Шапка ---- */
.tx-head { margin-bottom: 4px; }
.tx-kicker {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint);
}
.tx-kicker-sym { font-size: 15px; letter-spacing: 0; color: var(--gold); }
.tx-head h1 {
  font-size: clamp(36px, 5.2vw, 54px);
  margin: 0 0 12px;
  line-height: 1.05;
}
.tx-sub {
  margin: 0 0 10px;
  font-size: 16.5px; line-height: 1.6;
  color: var(--text-dim);
  max-width: 64ch;
}
.tx-summary {
  margin: 0;
  font-size: 14.5px; line-height: 1.6;
  color: var(--text-faint);
  max-width: 70ch;
}

/* ---- Вступ / опис цілі ---- */
.tx-prose { margin-top: 32px; max-width: 68ch; }
.tx-prose p {
  margin: 0 0 14px;
  font-size: 16px; line-height: 1.75;
  color: var(--text);
}
.tx-prose p:last-child { margin-bottom: 0; }
/* перший абзац - трохи більший: він же лід сторінки */
.tx-prose p:first-child { font-size: 17px; color: var(--text); }
/* Посилання «далі» під описом цілі. Тут був підпис джерела із золотою лінією -
   для самого лише посилання така рамка виглядала б виноскою без тексту.
   Двох класів вистачає, щоб побити «.tx-prose p», тож !important не потрібен. */
.tx-prose .tx-more { margin-top: 18px; font-size: 14px; }
.tx-more a { color: var(--green-pale); }
.tx-more a:hover { color: var(--gold-soft); }

/* ---- Олії тієї самої цілі ---- */
.tx-oils { margin-top: 30px; max-width: 68ch; }
.tx-oil-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-oil {
  padding: 4px 11px;
  border: 1px solid rgba(201, 169, 97, .3);
  border-radius: 20px;
  font-size: 13px;
  color: var(--gold-soft);
  background: rgba(201, 169, 97, .06);
}
.tx-oils-note {
  margin: 11px 0 0;
  font-size: 13px; line-height: 1.55;
  color: var(--text-faint);
}
.tx-oils-note a { color: var(--green-pale); white-space: nowrap; }
.tx-oils-note a:hover { color: var(--gold-soft); }

/* ---- Смуга фактів ----
   auto-fit, а не три колонки: у божеств немає блоку сил, і порожня третина
   виглядала б як недомальована сторінка.
   Картки одного ряду - однакової висоти (grid тягне їх сам, без align-items:
   start): три коробки різного зросту в один ряд читались як недороблена сітка. */
.tx-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.tx-box {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  padding: 13px 16px 15px;
}
.tx-box .h-label { margin-bottom: 10px; }
.tx-act { display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.tx-act .btn { width: 100%; }
.tx-act .herb-actions-hint { margin: 0; }

/* Мітка, а під нею бейджі. Сусідній .fact-row (мітка ліворуч, значення праворуч)
   тримає рівно одне значення - «Рослин 34»; перелік планет у тій формі давав
   осиротілий «Юпітер 1» біля правого краю. Див. tx_facet_badges(). */
.fact-group { padding: 9px 0 10px; border-bottom: 1px dashed var(--line-soft); }
.fact-group:last-child { border-bottom: 0; }
.fact-group .fact-key { display: block; margin-bottom: 8px; font-size: 14.5px; }
.fact-group a.badge:hover { background: rgba(255, 255, 255, .06); }

.tx-n { margin-left: 4px; font-size: .82em; color: var(--text-faint); }
a.badge-power .tx-n { color: inherit; opacity: .6; }
.fact-group .badge .tx-n { color: inherit; opacity: .6; }

/* ---- Чипси термінів (хаб і «інші добірки») ---- */
.tx-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tx-chip {
  display: inline-flex; align-items: baseline; gap: 7px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.tx-chip:hover {
  border-color: var(--green);
  background: var(--surface-2);
  color: var(--text);
  transform: translateY(-1px);
}
.tx-chip-sym { color: var(--gold); font-size: 13px; }
.tx-chip-n { font-size: 12px; color: var(--text-faint); }
.tx-chip:hover .tx-chip-n { color: var(--green-pale); }
/* рідкісна добірка: на місці, але не вдає з себе рівню «захисту» на 193 трави */
.tx-chip-thin { border-color: var(--line-soft); background: transparent; color: var(--text-dim); }
.tx-chip-thin:hover { color: var(--text); }
.tx-chip[data-element="Вода"]    .tx-chip-name { color: var(--el-water); }
.tx-chip[data-element="Вогонь"]  .tx-chip-name { color: var(--el-fire); }
.tx-chip[data-element="Повітря"] .tx-chip-name { color: var(--el-air); }
.tx-chip[data-element="Земля"]   .tx-chip-name { color: var(--el-earth); }

/* ---- Групи хаба ---- */
.tx-group { margin-top: 52px; scroll-margin-top: 80px; }
.tx-group .rel-head { margin-bottom: 6px; }
.tx-group-note {
  margin: 0 0 16px;
  font-size: 14px; color: var(--text-dim);
  max-width: 66ch;
}
.tx-count {
  font-size: 13px;
  color: var(--text-faint);
  white-space: nowrap;
}

/* ---- Сітка рослин ---- */
.tx-grid-section { margin-top: 52px; }
.tx-grid-section .rel-head { margin-bottom: 16px; }
.tx-siblings { margin-top: 56px; }

@media (max-width: 720px) {
  .tx-info { margin-top: 28px; }
  .tx-prose { margin-top: 26px; }
  .tx-group { margin-top: 40px; }
}
