/* The Lithotheque — stone and metal.
 *
 * Shares its structure with the Herbarium stylesheet, deliberately: the two are
 * a matched pair and should read as one idea applied twice. The palette differs
 * where the meaning differs — toxicity is the safety colour here, and the
 * "what it actually is" pills carry the weight that evidence carries there.
 */
   Denser than the rest of the site on purpose: these are reference entries, not
   essays, and they should read like a specimen label rather than an article. */

/* ------------------------------------------------------------------ index --- */

.lt-index {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 36px 24px 0;
}

.lt-filters {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 16px;
  align-items: end;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.lt-filters .ins-field { display: grid; gap: 6px; }

.lt-filters label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lt-filters input,
.lt-filters select {
  background: var(--night);
  border: 1px solid var(--border);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  padding: 9px 11px;
  width: 100%;
}

.lt-filters input:focus,
.lt-filters select:focus { outline: none; border-color: var(--accent); }

.lt-count {
  grid-column: 1 / -1;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--muted);
  margin: 0;
}

.lt-table { width: 100%; border-collapse: collapse; margin-top: 8px; }

.lt-table th, .lt-table td {
  text-align: left;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: baseline;
}

.lt-table thead th {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
}

.lt-row[hidden] { display: none; }

.lt-c-name a { text-decoration: none; display: block; }
.lt-c-name i { font-size: 16.5px; font-style: italic; }
.lt-c-name a:hover i { color: var(--accent); }

.lt-c-common {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 1px;
}

.lt-c-family, .lt-c-part {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.lt-empty { color: var(--muted); font-size: 15px; padding-top: 18px; }

/* ------------------------------------------------------------------ pills --- */

.lt-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }

.lt-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border: 1px solid var(--border);
  white-space: nowrap;
  cursor: help;
}



/* ------------------------------------------------------------------ entry --- */

.lt-entry .article-type { text-transform: none; letter-spacing: .04em; }

.lt-fields {
  display: grid;
  gap: 0;
  margin: 0 0 30px;
  border-top: 1px solid var(--border);
}

.lt-field {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.lt-field dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.lt-field dd { margin: 0; font-size: 15.5px; line-height: 1.6; }

.lt-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--paper);
  border: 1px solid var(--border);
  padding: 2px 8px;
  margin: 0 6px 4px 0;
}

.lt-block { margin-bottom: 30px; }

.lt-block h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.lt-block p { font-size: 15.5px; line-height: 1.65; margin: 0 0 10px; max-width: var(--measure); }

.lt-note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* Safety is visually distinct because it is the field a reader most needs to
   have noticed, and the one most easily skimmed past. */
.lt-safety {
  border-left: 3px solid #E06A4C;
  padding: 16px 0 4px 18px;
  background: rgba(224, 106, 76, .04);
}

.lt-safety h2 { color: #E06A4C; }



.lt-hook .prose { max-width: var(--measure); }

.lt-checked {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 30px;
}

/* ------------------------------------------------------------------ small --- */

@media (max-width: 900px) {
  .lt-filters { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
  .lt-index { padding-left: 16px; padding-right: 16px; }
  .lt-filters { grid-template-columns: 1fr; }

  /* The table is the index. Let it scroll rather than crush six columns. */
  .lt-table { display: block; overflow-x: auto; white-space: nowrap; }
  .lt-table th, .lt-table td { white-space: normal; min-width: 104px; }
  .lt-c-name { min-width: 180px; }

  .lt-field { grid-template-columns: 1fr; gap: 4px; }
  .lt-safety { padding-left: 14px; }
}

/* ------------------------------------------------------- lithotheque pills --- */

/* What it actually is. Anything that is not an approved species is marked,
   because that is the single most useful fact on the page. */
.lt-st { color: var(--muted); }
.lt-st-species { color: #57A88B; border-color: #2f5f4e; }
.lt-st-synthetic,
.lt-st-trade-name { color: var(--accent); border-color: #6b5518; }

/* Toxicity: the one place on this page where colour is doing a safety job. */
.lt-tx-serious { color: #E06A4C; border-color: #7a3325; background: rgba(224, 106, 76, .08); }
.lt-tx-caution { color: var(--accent); border-color: #6b5518; }
.lt-tx-low { color: var(--muted); }

/* When the meaning was invented. Deliberately unpainted — a date is not a
   verdict, and colouring the recent ones red would make it one. */
.lt-at { color: var(--muted); }

.lt-cons { color: #E06A4C; border-color: #7a3325; }

.lt-sym { color: var(--muted); text-transform: none; letter-spacing: .02em; }

/* --------------------------------------------------------------- identity --- */

.lt-identity {
  border-left: 2px solid var(--accent);
  padding: 14px 0 14px 18px;
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: var(--measure);
}

.lt-identity strong { color: var(--paper); font-weight: 500; }
.lt-identity-of { display: block; margin-top: 7px; }

.lt-formula {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: .02em;
}

.lt-formula sub { font-size: .72em; }

.lt-c-formula {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
}

.lt-c-class { text-transform: capitalize; }

.lt-tags { display: flex; flex-wrap: wrap; gap: 7px; }

.lt-confused .lt-tag { border-color: #6b5518; color: var(--accent); }

.lt-sourcing { border-left: 1px solid var(--border); padding-left: 18px; }
