/* Agora v2 — decks-changes.css: what a new version of a block changed
   (travail-marge.js). In the text, the added or changed sentences are
   highlighted in yellow, as commented passages are in blue, and a pill says
   the removed sentences; on the passage's card, a "Passage modifié en vN"
   band shows the previous text on demand. The yellow is that of the --warn
   token, in both themes. Loaded after agora.css (index.html): at equal
   specificity, these rules prevail over those of mark.trv-pas, and those of
   mark.trv-pas.on/.actif are taken up again higher for a yellow sentence of
   a passage. */

.trv { --edit: rgba(var(--warn-rgb),.16); --edit-strong: rgba(var(--warn-rgb),.32); --edit-stroke: rgba(var(--warn-rgb),.8); }
/* in light mode, the highlight of remarks is already pale yellow (--surl):
   the changed one leans toward orange, underlined with the token's amber
   (--warn rendered in transparency turned grey there) */
[data-theme="clair"] .trv { --edit: rgba(255,150,0,.30); --edit-strong: rgba(255,140,0,.46); --edit-stroke: var(--warn); }

/* an added or changed sentence */
mark.trv-mod { padding: 1px 0; border-radius: 2px; border-bottom: 2px solid var(--edit-stroke); background: var(--edit); color: inherit; }
mark.trv-mod.trv-pas.on, mark.trv-mod.trv-pas.actif { background: var(--edit-strong); }
code mark.trv-mod, td mark.trv-mod, th mark.trv-mod { padding: 0; }

/* "− 1 phrase retirée" where text disappeared */
.trv-withdrawal { display: inline-flex; align-items: center; margin-left: 6px; padding: 0 7px; border-radius: 8px;
  border: 1px dashed rgba(var(--warn-rgb),.7); background: rgba(var(--warn-rgb),.08); color: var(--warn);
  font: 500 11px var(--mono); line-height: 1.6; white-space: nowrap; vertical-align: 1px; cursor: help; }

/* the card of a modified passage: the yellow band, the previous text under
   it */
.trv-pc.edit-v { border-color: rgba(var(--warn-rgb),.45); }
.trv-mod-strip { margin-top: 10px; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(var(--warn-rgb),.5);
  background: rgba(var(--warn-rgb),.08); }
.trv-mod-tag { display: flex; align-items: center; gap: 6px; font: 600 10.5px var(--mono); letter-spacing: .06em;
  text-transform: uppercase; color: var(--warn); }
.trv-mod-tag .trv-ic { width: 13px; height: 13px; }
.trv-mod-tag span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.trv-mod-strip .trv-mod-view { margin-top: 4px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.trv-mod-before { margin-top: 8px; padding-left: 9px; border-left: 2px solid rgba(var(--warn-rgb),.55); font-size: 12.5px; line-height: 1.5;
  color: var(--muted); overflow-wrap: anywhere; }
.trv-mod-before b { display: block; margin-bottom: 2px; font: 500 10.5px var(--mono); color: var(--faint); }
.trv-mod-before p { margin: 0; }
.trv-mod-before s { text-decoration-color: rgba(var(--warn-rgb),.75); }
