/* ---------- Term list ---------- */
.term-list {
  display: grid;
  gap: 16px;
}

.term-item {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px 26px;
  background: var(--panel-deep);
  transition: border-color 0.2s;
}

.term-item:hover { border-color: var(--amber); }

.term-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.term-head h3 { font-size: 18px; font-weight: 800; }

.term-alias {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
  opacity: 0.85;
}

.term-cat {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  border: 1px solid var(--line-strong);
  background: rgba(255, 176, 59, 0.08);
  border-radius: 999px;
  padding: 3px 12px;
  margin-left: auto;
  white-space: nowrap;
}

.term-item p { color: var(--ink-dim); font-size: 14.5px; max-width: 760px; }

.term-item p code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink);
}

.term-item a { color: var(--amber); border-bottom: 1px dashed var(--line-strong); }

.term-see {
  display: block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
}

@media (max-width: 640px) {
  .term-cat { margin-left: 0; }
  .term-item { padding: 18px 20px; }
}
