/* ---- Timeline: who talked to whom, which way, and by hand or not ----
   Pete, 2 Nov 2026. The header of a call, text or email is "John texted Gian"
   (components.js timelineActorsHtml); the icon says which way it went. */

/* Incoming calls and texts are hollow, outgoing ones filled, so the two differ
   in fill as well as in the arrow. --tl-c is the type's colour. */
.tl-ico.tl-ico-out { background: var(--tl-c); color: #fff; }
.tl-ico.tl-ico-in {
  background: #fff; color: var(--tl-c);
  box-shadow: inset 0 0 0 2px var(--tl-c);
}
.tl-ico.tl-ico-in svg, .tl-ico.tl-ico-out svg { width: 16px; height: 16px; }

.tl-body .head b.tl-actors { font-weight: 600; }

/* Somebody in the office. The blue underline is what will later open a
   message to them. */
.tl-staff {
  font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--blue);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}

/* The lead's end, a button that renames whoever is on that number. Looks like
   the words around it until pointed at; the padding is a bigger target for a
   finger without moving the line. */
.tl-person {
  font: inherit; font-weight: 700; color: inherit; background: none; border: 0;
  padding: 6px 0; margin: -6px 0; cursor: pointer;
  border-bottom: 1px dashed transparent;
}
.tl-person:hover, .tl-person:focus-visible { border-bottom-color: var(--muted); outline: none; }
.tl-person-ro { font-weight: 700; }

/* Sent by a machine: plans, rules, the showing and offer auto-replies, bots. */
.tl-automated {
  display: inline-block; background: #fde68a; color: #78350f;
  font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 1px 6px;
  vertical-align: 1px; cursor: help;
}

/* A text their phone resent, counted once (server/textrepeats.js). */
.tl-repeat {
  display: inline-block; background: #e0e7ff; color: #3730a3;
  font-size: 10.5px; font-weight: 700; border-radius: 5px; padding: 1px 6px;
  vertical-align: 1px; cursor: help;
}

/* Larger reading text on the lead page (Pete, 2 Nov 2026). The dashboard feed
   keeps its compact size. */
.person-layout .tl-body .text { font-size: 15px; line-height: 1.5; }
.person-layout .tl-body .subj { font-size: 15px; }
.person-layout .tl-body .head b { font-size: 14px; }

/* The timeline's corner grip (page-person.js bindTimelineCorner). It sits on
   the side that has a neighbouring column to take width from. */
.card-corner {
  position: absolute; bottom: -3px; width: 16px; height: 16px; z-index: 3;
}
.card-corner-right { right: -3px; cursor: nwse-resize; }
.card-corner-left { left: -3px; cursor: nesw-resize; }
.card-corner::after {
  content: ''; position: absolute; bottom: 5px; width: 8px; height: 8px;
  border-bottom: 2px solid var(--border); opacity: 0; transition: opacity .12s;
}
.card-corner-right::after { right: 5px; border-right: 2px solid var(--border); }
.card-corner-left::after { left: 5px; border-left: 2px solid var(--border); }
.pcard:hover .card-corner::after { opacity: 1; }
.card-corner:hover::after { border-color: var(--blue); opacity: 1; }

.mr-person { font-weight: 600; color: var(--text, #0f172a); }
