/* ---------- Literature Review: reference cards (column 3) and notes (column 4) ---------- */
/* Loaded after styles/literature.css, which defines the board layout, the
   --lit-* type colors, and the shared .lit-editable placeholder rule. */

.lit-ref-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 6px 14px 24px;
}

.lit-ref {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--lit-other);
  border-radius: 8px;
  padding: 10px 12px 11px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.lit-ref:hover {
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.06);
}

.lit-ref.is-selected {
  border-color: var(--ink);
  box-shadow: 0 2px 10px rgba(17, 17, 17, 0.09);
}

.lit-ref-top {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.lit-ref-type {
  flex: 1 1 auto;
  min-width: 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  cursor: pointer;
  outline: none;
  padding: 2px 0;
}

.lit-ref-info,
.lit-ref-remove {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: #ffffff;
  color: var(--ink-soft);
  font-size: 12px;
  font-style: normal;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.lit-ref-info:hover,
.lit-ref-remove:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.lit-ref-info.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #ffffff;
}

.lit-ref-citation {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
  outline: none;
}

.lit-ref-details {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lit-ref-details label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.lit-ref-field {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink);
  outline: none;
  word-break: break-all;
}

.lit-ref-open {
  align-self: flex-start;
  font-size: 11.5px;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lit-ref-open:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- Notes column ---------- */

.lit-notes-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 16px 20px 24px;
}

.lit-notes-citation {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}

.lit-notes-editable {
  min-height: 220px;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink);
  outline: none;
  white-space: pre-wrap;
}
