/* ============================================================
   vodic.css — Vodič: HAVC-ov poticaj za neovisne producente
   (/alati/poticaj-za-neovisne/vodic/<slug>/). Loaded after
   _content-shared.css, which provides .article, .prose,
   .article__sources, .toc and the behindTool strip.
   ============================================================ */

/* Breadcrumb has five steps here: let it wrap on phones. */
.breadcrumb--wrap { flex-wrap: wrap; row-gap: 4px; }

.vodic .article__meta { flex-wrap: wrap; }
.vodic .article__review { margin-top: 24px; }

/* Vertical rhythm. `.prose p/ul { margin: 0 }` in _content-shared.css
   outranks `.prose > * + *`, which leaves consecutive paragraphs without
   spacing; restore it here with explicit heading spacing. */
.vodic .prose > * + * { margin-top: 18px; }
.vodic .prose > * + h2 { margin-top: 52px; }
.vodic .prose > * + h3 { margin-top: 32px; }
.vodic .prose > h2 + *, .vodic .prose > h3 + * { margin-top: 12px; }

/* In-page anchors land below the sticky navigation (76px). */
.vodic .prose h2[id] { scroll-margin-top: 96px; }
.vodic .prose { overflow-wrap: break-word; }
.vodic .prose h3 { font-size: 19px; }
.vodic .prose blockquote { font-style: normal; font-size: 15px; line-height: 1.65; }
.vodic .prose td:last-child { white-space: nowrap; }
@media (max-width: 480px) {
  .vodic .prose { font-size: 16px; }
  .vodic .prose th, .vodic .prose td { padding: 10px 8px; }
  .vodic .prose td:last-child { white-space: normal; }
}

/* One calm next step per chapter. */
.vodic-cta {
  max-width: 760px; margin-top: 48px; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap;
  border: 1px solid var(--red-100); border-radius: var(--radius); background: var(--red-50);
}
.vodic-cta__text { margin: 0; flex: 1 1 320px; font-size: 16px; line-height: 1.6; color: var(--ink-800); }
.vodic-cta .btn { flex: 0 0 auto; }
@media (max-width: 480px) {
  .vodic-cta { padding: 20px; }
  .vodic-cta .btn { width: 100%; justify-content: center; white-space: normal; text-align: center; line-height: 1.3; }
}

/* Previous / next chapter. */
.vodic-nav {
  max-width: 760px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--ink-100);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px;
}
.vodic-nav__link {
  display: flex; flex-direction: column; gap: 6px; min-height: 44px; padding: 16px 18px;
  border: 1px solid var(--ink-100); border-radius: var(--radius); background: #fff;
  color: inherit; text-decoration: none;
  transition: border-color var(--dur) var(--ease-out);
}
.vodic-nav__link:hover { border-color: var(--red-200); text-decoration: none; }
.vodic-nav__link:focus-visible { outline: 3px solid var(--red-500); outline-offset: 2px; }
.vodic-nav__link--next { text-align: right; align-items: flex-end; }
.vodic-nav__dir {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red-700);
}
.vodic-nav__link--prev .vodic-nav__dir .icon { transform: rotate(180deg); }
.vodic-nav__name { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink-900); }
@media (max-width: 600px) {
  .vodic-nav { grid-template-columns: minmax(0, 1fr); }
  .vodic-nav__spacer { display: none; }
  .vodic-nav__link--next { text-align: left; align-items: flex-start; }
}
