/* Wystawka24 — typografia i elementy artykułów bloga (spis treści, „W skrócie”, postęp czytania).
   Uzupełnia /css/tailwind.css. Kolory zgodne z marką: złoto #C8A24D, tło #020202. */

/* ---------- treść artykułu ---------- */
.prose-custom { font-size: 17px; }
.prose-custom > :first-child { margin-top: 0; }
.prose-custom h2 { font-size: 28px; font-weight: 700; color: #fff; margin-top: 56px; margin-bottom: 16px; line-height: 1.3; letter-spacing: -0.01em; scroll-margin-top: 150px; }
.prose-custom h3 { font-size: 21px; font-weight: 600; color: #C8A24D; margin-top: 36px; margin-bottom: 12px; line-height: 1.4; scroll-margin-top: 150px; }
.prose-custom p { font-size: 17px; line-height: 1.8; color: #a3a9b4; margin-bottom: 20px; }
.prose-custom strong { color: #fff; font-weight: 600; }
.prose-custom em { color: #d1d5db; }
.prose-custom a { color: #C8A24D; text-decoration: underline; text-decoration-color: rgba(200,162,77,.45); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.prose-custom a:hover { color: #E6C470; text-decoration-color: #E6C470; }

/* listy — Tailwind zeruje domyślne punktory, więc rysujemy własne */
.prose-custom ul, .prose-custom ol { margin: 4px 0 24px; padding: 0; list-style: none; }
.prose-custom li { position: relative; padding-left: 28px; margin-bottom: 10px; font-size: 17px; line-height: 1.75; color: #a3a9b4; }
.prose-custom li > ul, .prose-custom li > ol { margin: 10px 0 0; }
.prose-custom ul > li::before { content: ""; position: absolute; left: 8px; top: .72em; width: 7px; height: 7px; border-radius: 2px; background: #C8A24D; transform: rotate(45deg); }
.prose-custom ol { counter-reset: w24-lista; }
.prose-custom ol > li { counter-increment: w24-lista; padding-left: 38px; }
.prose-custom ol > li::before { content: counter(w24-lista); position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 8px; background: rgba(200,162,77,.1); border: 1px solid rgba(200,162,77,.25); color: #C8A24D; font-size: 13px; font-weight: 700; line-height: 24px; text-align: center; }
/* elementy list wewnątrz kart/ramek (nie stylujemy ich jak treści) */
.prose-custom .w24-bez-punktow li, .prose-custom [class*="space-y"] > li { padding-left: 0; }
.prose-custom .w24-bez-punktow li::before { content: none; }

.prose-custom blockquote { margin: 28px 0; padding: 18px 22px; border-left: 3px solid #C8A24D; background: rgba(200,162,77,.05); border-radius: 0 12px 12px 0; color: #d1d5db; font-size: 17px; line-height: 1.75; }
.prose-custom figure { margin: 40px 0; }
.prose-custom figcaption { margin-top: 12px; font-size: 14px; line-height: 1.6; color: #8a909b; text-align: center; }
.prose-custom table { font-variant-numeric: tabular-nums; }
.prose-custom hr { border: 0; border-top: 1px solid rgba(255,255,255,.08); margin: 48px 0; }
.prose-custom code { font-family: 'JetBrains Mono', monospace; font-size: .9em; background: rgba(255,255,255,.06); padding: 2px 6px; border-radius: 6px; color: #e5e7eb; }

@media (max-width: 767px) {
  .prose-custom h2 { font-size: 24px; margin-top: 44px; }
  .prose-custom h3 { font-size: 19px; }
  .prose-custom p, .prose-custom li { font-size: 16.5px; }
}

/* ---------- pasek postępu czytania ---------- */
.w24-postep { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.w24-postep > span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #8A7035, #C8A24D 40%, #F0D898); }

/* ---------- spis treści ---------- */
.w24-spis-linki a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: #8a909b; font-size: 14px; line-height: 1.45; text-decoration: none; transition: color .2s, border-color .2s; }
.w24-spis-linki a:hover { color: #e5e7eb; }
.w24-spis-linki a.w24-aktywny { color: #C8A24D; border-left-color: #C8A24D; }
.w24-spis-m summary { list-style: none; cursor: pointer; }
.w24-spis-m summary::-webkit-details-marker { display: none; }
.w24-spis-m[open] .w24-spis-m-ikona { transform: rotate(180deg); }
.w24-spis-m a { display: flex; gap: 10px; padding: 8px 0; color: #a3a9b4; font-size: 15px; line-height: 1.45; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.05); }
.w24-spis-m a:hover { color: #fff; }
.w24-spis-m li:last-child a { border-bottom: 0; }
.w24-spis-nr { color: #C8A24D; font-variant-numeric: tabular-nums; min-width: 1.5em; }

@media (prefers-reduced-motion: reduce) { .w24-postep { display: none; } .w24-spis-linki a { transition: none; } }
