/* The posts in the reader's language (views/content-lang.js, 18 November 2026).

   One quiet line under a translated post's facts: the translate mark, "Translated automatically from English", and
   Show original as a word that is pressed (underlined, a step darker than the line). On a card it sits under the grey
   line of the source and the date; on the post's page, under who wrote it. A post kept in English carries the same line
   with the info mark and the note. A shorter row (Discover, Saved, a profile) carries a small "Translated" among its
   facts. Under a comment of the post's page, "See translation" in the same quiet words. When the words change they
   fade in once, so the eye sees that they changed; with reduced motion they are simply there. */

.ct-line {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 10px 0 0; font-size: 14px; line-height: 1.45;
  color: var(--cl-ink-3, var(--color-muted-foreground));
}
/* the mark sits on the first line of the words, which wrap beside it, never under it */
.ct-line > i { flex: none; margin-top: calc((1.45em - 16px) / 2); font-size: 16px; line-height: 1; }
.ct-line__t { min-width: 0; }
.ct-line__btn, .ct-cm__btn {
  appearance: none; position: relative; border: 0; background: none;
  margin: 0; padding: 0; border-radius: 6px; white-space: nowrap;
  font: inherit; color: var(--cl-ink-2, var(--color-foreground)); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--cl-line-3, currentColor); text-underline-offset: 3px;
  transition: color .2s var(--cl-out, ease), text-decoration-color .2s var(--cl-out, ease);
}
/* a finger finds it: the pressable area reaches past the words without moving them */
.ct-line__btn::after, .ct-cm__btn::after { content: ''; position: absolute; inset: -12px -8px; }
@media (hover: hover) {
  .ct-line__btn:hover, .ct-cm__btn:hover { color: var(--cl-ink, var(--color-foreground)); text-decoration-color: currentColor; }
}
.ct-line__btn:focus-visible, .ct-cm__btn:focus-visible { outline: 2px solid var(--cl-lilac, currentColor); outline-offset: 3px; }
/* the dot between the words and the press: part of the press, so it never ends a line alone, and never underlined */
.ct-line__w + .ct-line__btn::before, .ct-cm__w + .ct-cm__btn::before {
  content: '\00b7'; display: inline-block; margin: 0 6px 0 2px; color: var(--cl-ink-4, currentColor); text-decoration: none;
}
.ct-cm__w + .ct-cm__btn { margin-left: 0; }
/* a narrow screen: "from English" is said to the screen reader only, so the line stays one line */
@media (max-width: 639.98px) {
  .ct-line__more { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}

/* on a card: under the grey line of the source, the date and the specialty */
html body .fc .fc-body > .ct-line { margin-top: 8px; }
html body .fc > .ct-line { margin: 4px 0 0; padding: 0; }
/* on the post's page: under who wrote it, before the text */
html body .pp-read > .ct-line { margin-top: 14px; font-size: 14px; }

/* a shorter row: a small "Translated" among its facts */
.ct-mini {
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
  font-size: 12.5px; line-height: 1; color: var(--cl-ink-3, var(--color-muted-foreground));
}
.ct-mini > i { font-size: 13px; }

/* a comment of the post's page */
.ct-cm {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px;
  margin: 6px 0 0; font-size: 13px; line-height: 1.4;
  color: var(--cl-ink-3, var(--color-muted-foreground));
}
.ct-cm__btn[disabled] { opacity: .6; cursor: progress; }

/* the words that changed, once */
.ct-in { animation: ct-in .36s var(--cl-out, ease) both; }
@keyframes ct-in { from { opacity: .15; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ct-in { animation: none; } }
