/* hord code furniture: listings, blame, syntax
   colours, diffs and review threads. All colour
   via scop slots. */

/* clone strip: a carved well holding the remote URL */
.clone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.3px;
  background: var(--carve);
  border: 1px solid var(--edge);
  border-radius: 7px;
  padding: 7px 12px;
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
}
.clone .scheme { color: var(--dim); }

/* code listing with line numbers: blob and blame views */
.listing {
  font-family: var(--mono);
  font-size: 12.3px;
  line-height: 1.75;
}
.lline {
  display: grid;
  grid-template-columns: 52px 1fr;
  padding: 0 16px 0 0;
}
.lline .no {
  color: var(--dim);
  text-align: right;
  padding-right: 14px;
  user-select: none;
}
.lline .tx { white-space: pre; overflow-x: auto; }
.lline:hover { background: hsl(var(--light) / .05); }
.lline.mark { background: hsl(var(--light) / .09); }

/* blame: a commit gutter joined to the listing */
.bline {
  display: grid;
  grid-template-columns: 210px 52px 1fr;
  padding: 0 16px 0 0;
  font-family: var(--mono);
  font-size: 12.3px;
  line-height: 1.75;
}
.bline .who {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding-left: 16px;
  overflow: hidden;
  white-space: nowrap;
  color: var(--dim);
  border-right: 1px solid var(--edge);
  font-family: var(--sans);
  font-size: 12px;
}
.bline .who a { color: var(--accent); text-decoration: none; }
.bline .no {
  color: var(--dim);
  text-align: right;
  padding-right: 14px;
  user-select: none;
}
.bline .tx { white-space: pre; overflow-x: auto; }
.bline.first { border-top: 1px solid var(--edge); }
.bline:hover { background: hsl(var(--light) / .05); }

/* server-side syntax colours, mapped onto scop slots; chroma
   emits these classes in the real application */
.hl-k { color: var(--accent); }
.hl-s { color: var(--ok); }
.hl-c { color: var(--dim); font-style: italic; }
.hl-n { color: var(--danger); }
.hl-t { color: var(--ink); font-weight: 600; }

/* diff furniture beyond the core's .dline */
.dfile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--edge);
  font-family: var(--mono);
  font-size: 12.5px;
}
.dfile .stat { color: var(--dim); font-size: 12px; }
.dfile .stat b.add { color: var(--ok); }
.dfile .stat b.del { color: var(--danger); }
.hunk {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dim);
  background: hsl(var(--light) / .05);
  padding: 3px 16px;
  border-top: 1px solid var(--edge);
  border-bottom: 1px solid var(--edge);
}

/* a review thread pinned beneath a diff line */
.dthread {
  margin: 6px 44px 10px 100px;
  background: var(--plane);
  border: 1px solid var(--edge);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 13.5px;
}
.dthread .meta { color: var(--dim); font-size: 12.5px; }
.dthread p { margin: 6px 0 0; }
