/* Kabene – štýl obsahu blogového článku (ActionText / Trix)
   Platí pre verejný článok (.trix-content) aj pre editor v admine (trix-editor),
   aby editor vyzeral rovnako ako výsledok. Farby a písma sú prevzaté z kozneznamienka.sk. */

.trix-content,
trix-editor {
  --ink: #0e2e2a;      /* nadpisy */
  --text: #1e2b29;     /* text */
  --teal: #095b52;     /* odkazy, akcenty */
  --mint: #a5cdad;     /* tlačidlo */
  --soft: #eef5f0;     /* pozadie boxu */
  --line: #dfe7e3;

  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  max-width: 68ch;               /* pohodlná dĺžka riadku */
}

/* Odstupy medzi blokmi (Trix ukladá odseky ako <div>) */
.trix-content > div,
.trix-content > ul,
.trix-content > ol,
.trix-content > blockquote,
.trix-content > figure,
trix-editor > div,
trix-editor > ul,
trix-editor > ol,
trix-editor > blockquote {
  margin: 0 0 1.1em;
}

/* Medzinadpisy – Trix vie len <h1>, na verejnej stránke sa konvertujú na <h2> */
.trix-content h1,
.trix-content h2,
trix-editor h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2em 0 0.6em;
}

.trix-content strong,
trix-editor strong { font-weight: 600; color: var(--ink); }

/* Zoznamy – návrat odrážok a číslovania, ktoré reset CSS zrušil */
.trix-content ul, trix-editor ul { list-style: disc;    padding-left: 1.4em; }
.trix-content ol, trix-editor ol { list-style: decimal; padding-left: 1.6em; }
.trix-content li, trix-editor li { margin: 0.35em 0; padding-left: 0.2em; }
.trix-content li::marker, trix-editor li::marker { color: var(--teal); }

/* Citát = zvýraznený box „Krátka odpoveď" */
.trix-content blockquote,
trix-editor blockquote {
  background: var(--soft);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  padding: 1.1em 1.3em;
  font-size: 1.05em;
  font-style: normal;
  color: var(--text);
}

/* Odkazy */
.trix-content a,
trix-editor a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* Posledný odkaz v článku (výzva na objednanie) ako tlačidlo */
.trix-content > div:last-child a:only-child {
  display: inline-block;
  background: var(--mint);
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  padding: 0.8em 1.6em;
  font-weight: 500;
}

/* Obrázky */
.trix-content figure img,
trix-editor figure img { max-width: 100%; height: auto; border-radius: 12px; }
.trix-content figcaption,
trix-editor figcaption { font-size: 14px; color: #5a6866; margin-top: 0.5em; }

@media (max-width: 600px) {
  .trix-content, trix-editor { font-size: 16px; }
}
